A library is a file that can be included into the code to add new instructions by combining many existing instructions and creating one easy to use instruction to call.
0
votes
1answer
33 views
Arduino IDE not handling library code correctly?
The author of the PinChangeInt library and the EnableInterrupt library states at github:
When the PinChangeInt was in a .h and .cpp file, the Arduino IDE tried
to compile it twice. I have a ...
0
votes
0answers
29 views
NodeMCU build ESP8266
Anybody have a build of the NodeMCU firmware with the g8b SH1106 driver enabled? I can't find one anywhere and can't get the firmware to compile myself. (I know this isn't Arduino related per say but ...
0
votes
1answer
28 views
How to change the topic_name string to PROGMEM?
I'm trying to save SRAM on my Arduino pro mini by going through some libraries. I've noticed that to use my Arduino as a ROS node the library stores the topic name and message type as constants.
...
0
votes
1answer
22 views
undefined reference to `PPMintIn::PPMintIn(int)'
I am making a new library that will utilize PinChangeInt's library.
My intention is to further simplify repetitive code by creating a library. (This is to allow for multiple PPM channels without ...
0
votes
2answers
30 views
Pass a member function pointer to a method of a foreign class (EDB Lib)
I'm currently working on my own arduino library and I'm becoming exasperated with the following problem: I want to store data with the extended database library ...
1
vote
2answers
39 views
How to develop or edit an Arduino library?
I'm not sure if I should split this question in two.
I had to edit some libraries and I plan to make some myself but didn't try yet.
Editing a library seems very laborious comared to editing a ...
0
votes
1answer
30 views
Is the Arduino library so slow?
I have a plan to operate 5MP camera module with the arduino Due. But I wonder if I can use the arduino libraries that include digitalRead, digitalWrite and so on. But some people said that it is a bad ...
1
vote
1answer
28 views
CC3000 Wifi: Enable Debug
I am using the Adafruit_CC3000_Library. I've followed the WebClient.ino example sketch. I'm able to make 300-400 HTTP requests, but eventually the connection will hang. Thus, I'd like to debug.
...
0
votes
1answer
62 views
Adafruit DHT22 Library + Arduino Due not compiling?
i recently purchased a DHT22's and tried to get it to work using Adafruit's DHT library on Github.
When i compile it with a Arduino DUE, it gives me the following error:
...
1
vote
2answers
48 views
Existence of a non blocking and task yield framework for Arduino programming
I've been playing around with Arduino and understand that the standard runtime provides a single thread essentially.
I was wondering if it is possible to write a thin layer (library) that allows one ...
0
votes
0answers
42 views
Two identical functions, one works one doesn't. why?
I'm cross-posting this with the Arduino exchange because I'm not sure if it's a problem with my C or something else entirely.
I'm attempting to communicate over WiFi using the process library (Part ...
0
votes
1answer
18 views
Pass Several Values to Library
Unfortunately I have yet to learn C++ though I have experience with C# and other non-C languages. After trying for the past 5 hours to pick up what I can from Stack and other sites I haven't found a ...
2
votes
1answer
100 views
Updating MAX7456 library to work with Arduino 1.6.6
I've got this library for communicating with the MAX7456 chip.
The library is abandoned and the only one I found that actually works, so I'd really like to use it.
It compiles fine with Arduino ...
1
vote
1answer
41 views
Using union to return a range of bits from a data frame: wrong approach?
I'm working on an adaptation of Jason Leyrer's Guitar Hero Library for Arduino. My version is for a DJ Hero controller, and I've also borrowed some code from this Arduino forum thread: topic=120527 ...
0
votes
0answers
38 views
Arduino can't find my custom library: fatal error, Motor.h not found etc
I have been working on a project building a robot and using my own custom-built libraries to control it. However after converting all my old code into libraries Arduino can't find them.
Everything ...
0
votes
0answers
14 views
Arduino with NFC: Garbled Serial Monitor
I started working on a small programming project just for fun and I have got stuck. I have been using the following tutorial to make an Amiibo Music Box
Now using the libraries the tutorial ...
2
votes
1answer
86 views
How to detect if more than one button was pressed
I am designing a turn signal bicycle blinker using two pushbuttons as input, one for each side, with a corresponding light for each button.
The idea is this:
Pressing one side makes same side start ...
0
votes
1answer
70 views
TinyGPS (Plus) Library
Is there a particular function in the library TinyGPS or TinyGPS Plus which outputs the raw NMEA sentences? I couldn't find anything about it on the website guide of the library.
0
votes
1answer
66 views
Arduino can't see any library I have installed for nrf905?
nrf905\
nRF905-All-In-One-Shield\
RadioHead-master\
RadioHead\
None any of them are compiled with their examples without getting errors.
Error message:
nRF905_RX.ino:4:20: fatal error: NRF905.h: ...
0
votes
1answer
53 views
Arduino IRremote stops working
I'm using a standard 38kHz receiver with Arduino-IRremote library and it works fine for a while but then it stops working. The loop function is running time after time as expected but at some point ...
0
votes
2answers
44 views
how to add .h file in library
I am trying to make ultrasonic distance meter
using Arduino. For this i add ultrasonic library.
but on compiling it show error "ultrasonic.h
not available" please tell me how to add this
.h file
-5
votes
1answer
62 views
Two programs in one sketch [closed]
I want to create a sketch for 2 LEDs. The first LED in the first tab and the second in the second tab. I need an example please.
Thanks.
For more details, I want to make the LVIFA_Base for Labview ...
0
votes
1answer
30 views
Arduino C++ library syntax
I am looking at modifying the H3LI331DL I2C library posted by Seed Studio for communicating with the H3LI331DL accelerometer. The library hardcodes the address for the accelerometer in the header ...
0
votes
1answer
50 views
Malloc with Objects in Arduino libraries
My understanding of using dynamic memory on the arduino is that new/delete are not available, only malloc realloc and such C functions, as mentioned here:
C++ & the AVR
I am creating a library ...
2
votes
1answer
139 views
Custom Arduino library problem
I have made my custom serial(UART) library.
So I made uart.h and uart.cpp files as following.
uart.h
#ifndef UART_H
#define UART_H
#include <avr/io.h>
#include <stdlib.h>
...
1
vote
1answer
56 views
Adafruit_GFX setRotation not working when called from within a class
Using an ILI9341. I'm trying to set the rotation from within a class, but it's not working. The code is very straight forward.
If I rotate in the class, the setRotation code does not work but the ...
0
votes
0answers
43 views
How to effectively modify a library to be able to function with Mozzi Library?
I have sketch that runs almost exactly as I would want it to. Now I am trying to add sound to it using the Mozzi Library instead of just using the tone function. This way I can avoid having to put a ...
0
votes
1answer
13 views
What is the type parameter on the NRF24NetworkHeader member
Link of the member
What is the character parameter in the above member of the class NRF24Network
I cannot understand the use of it.
0
votes
0answers
21 views
Can you explain the arduino code given in the details? How 0x1A is ctrl+z in C? [duplicate]
Serial.write(0x1A); // sends ctrl+z end of message delay(1000);
Serial.write(0x0D); // Carriage Return in Hex delay(1000);
Serial.write(0x0A);
0
votes
0answers
536 views
How to write RFID data using the RFID-RC522 chip
I have got this library+code example from a friend, to read RFID numbers using the RFID-RC522 chip:
RFID.ino
#include <RFID.h>
#include <SPI.h>
/**
* RFID pins
* MOSI: Pin 11 / ICSP-4
* ...
0
votes
1answer
174 views
Alternatives to Wire library for I2C
I am looking for (reasonably easy to use and well tested) alternatives to the Wire library. Wire works very well, but: I only need the Arduino to act as I2C master and the Wire library seems to be a ...
7
votes
3answers
598 views
Writing C Program outside of Arduino IDE?
I like the idea of using the Arduino IDE for simple projects and for getting started with Arduino, but the consensus I've gotten so far is that it is for those who are new to Arduino and/or ...
0
votes
1answer
239 views
Arduino Attiny 85 IR library compiler error
I'm about to ask a question for the most common problem which everyone has with attiny85 and the IR library. I will try to make this question as simple as possible.
Few things about the lib and the ...
0
votes
1answer
20 views
Can I use custom ethernet shield with standard libraries?
I would like to make a custom ethernet card that uses the enc28j60 like this:
DIY Ethernet card
but first I would like to know if I can use the standard libraries which can be used with the ethernet ...
0
votes
0answers
34 views
Change ports in library file
I want to change the output ports in a library file because I use an Arduino Mega and the file uses an arduino uno.
How to change the output ports?
0
votes
2answers
226 views
Making my own libraries
Does anyone know of a site or book where you can learn how to create, or for first reed, libraries. Because I think the libraries I use are sometimes unnecessary complicated, or have similar features, ...
0
votes
0answers
14 views
How to use the OV7670 camera with Arduino IDE [duplicate]
I recently got the OV7670 camera and I like to use this with the Arduino IDE, but I dont find any information about how start with this, i found code but for other IDE's, anyone knows hos to start ...
0
votes
0answers
421 views
Servotimer2.h is not recognised as a library by arduino uno
I'm doing a project for school with an arduino uno. I want to control a motor using a RF-module as remote control. I need the library Virtualwire.h to use the RF-module and the library Servo.h to ...
1
vote
1answer
317 views
Accel Stepper help, stepper not going backwards
So my question is that I am trying to use a arduino library called Accel Stepper to control a stepper motor, I made code that makes the stepper motor move one rev clockwise and then one rev counter ...
0
votes
2answers
672 views
Arduino IDE doesn't find header file
I'm trying to start with the SainSmart 4x20 serial LCD, and copied the library to the Arduino library:
So LiquidCrystal_I2C.h is included. But when I try to compile an example sketch it says
...
1
vote
0answers
159 views
TCCR1A and TCCR2A on Leonardo
I'm trying to use the TTS library for Arduino on an Arduino Micro board, which is based on the Leonardo. When I try to compile my sketch I get some errors;
/libraries/TTS/TTS.cpp: In function 'void ...
4
votes
2answers
380 views
Problem importing a library in .h file
I have following code:
MyApp.ino:
#include "DfRobotLcdShield.h"
void setup() {
}
void loop() {
}
DfRobotLcdShield.h:
#include <LiquidCrystal.h>
When I try to compile, I'm getting the ...
0
votes
1answer
166 views
pcDuino 3B Wire library errors
I recently purchased a pcDuino 3B and I am very pleased with the Board so far. I can use the preinstalled arduino IDE to program the board from the board and run programs.
However, when I came to use ...
1
vote
1answer
99 views
mega include a library
This question is a little related to this one: How to compile and upload the specific (.cpp + .h) code?
I've installed MdbBillValidator to my arduino libraries collection. I tried both on ubuntu ...
0
votes
1answer
83 views
How to share a library on Arduino Playground
I have written an ISR based timer library for Arduino Uno and I would like to share it on website and get reviewed.
But i am stuck on how to post it to playground.
1
vote
1answer
133 views
Can anyone suggest me a software timer library that does not use polling but timer ISR instead?
There are many software timer libraries available in Arduino.
A library called SimpleTimer http://playground.arduino.cc/Code/SimpleTimer is really good with many functions, but it uses polling.
If ...
2
votes
1answer
650 views
Emulating 1-wire device(s)
What I want to do is make a ATTiny IC become a slave on the 1-wire bus, with its own S/N and command list for its specific functions.
What I want to know is if I can use the one wire library from ...
2
votes
1answer
187 views
NodeJS (Galileo-IO) + Arduino sensor library
I've done some basic apps with NodeJS firmata where I can connect to my Arduino Uno and do the basics like reading a pin or doing a servo write. I'd like to go further and play with some different ...
1
vote
1answer
234 views
error: 'CLASS' does not name a type only when creating object inside another object
I'm trying to use Adafruit's LED Backpack library within a custom class. When I use the Adafruit library directly within a sketch, it compiles fine. When I use an example sketch provided with the ...
0
votes
1answer
150 views
Why doesn't the Micro OLED library compile on my DUE?
I have an Arduino DUE and just got a Micro OLED display from SparkFun.
Using their library, when I try to compile I get the error below. Other example code works just fine and I've programmed this ...