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
37 views
Creating a library
I created a simple library for formatting text output on the serial monitor. It has thee functions, one that creates carriage returns, one that sets the number of spaces between characters and the ...
0
votes
1answer
19 views
Where could I find the “Serial.find()” source code?
As written in the title, could you tell me where to find the source code of the function "Serial.find()"?
I haven' t installed the Arduino IDE, so I'm glad if you could me link a web resource, or if ...
1
vote
0answers
11 views
Replacement for #include <pins_arduino.h> on particle photon
I've run into this a couple of times when trying to use libraries written for Arduino on a particle photon. Many have the line:
#include <pins_arduino.h>
which returns the error on the ...
0
votes
1answer
117 views
Find remote ip address TCP
Found this "Remote IP of TCP Socket" at:
https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc3000/f/851/t/380635
How would this be used; Adafruit CC3000 library, "Utility\socket.h?"
...
0
votes
1answer
34 views
Arduino Mousecontroller library doesn't work
I am working on a project with the Mousecontrol library. This causes me a lot of problems with loading the library. I imported the library but it gives me errors everytime. I think it is a mistake in ...
0
votes
1answer
38 views
Error saying an included library is not
The IDE tells me the included library isn't? I tried restarting the IDE and my computer but it doesn't work. The other libraries work fine it's only with Keyboard that it fails.
My code:
#include ...
0
votes
0answers
21 views
Edited library .cpp isn't changing / compiling
I've made some minor changes to a library (just the .cpp, not .h), and the changes aren't taking effect when compiling. Even outlandish errors have no effect.
I've tried in VS2015 (my normal ...
5
votes
2answers
73 views
Is there a way to replace an Arduino core function without modifying the Arduino code?
(Let's just skip the suggestions that it's wrong idea and interrupts for a while...)
Is there a way to replace the digitalWrite() method (for example) so I can add something more to happen in there? ...
1
vote
0answers
70 views
Are there any detail example of Si4463
Recently I buy two Si4463, but I don't know how to use it.It seemly be complex, whether there are some example of Si4463 by Arduino ?
1
vote
3answers
40 views
Can I prevent the Stepper library from holding the motor?
I'm using the Stepper library to control a single stepper motor. When the Arduino is not running the motor it is holding the motor shaft in place. For my application, this is very wasteful and puts ...
0
votes
1answer
47 views
Arduino OOP and [this] keyword
Lets say I have a sketch called mysketch.ino with these contents:
String globalString = "ThisisGlobal";
void setup(){}
void loop(){}
How can I pass THIS sketch mysketch.ino as an object or its ...
1
vote
1answer
21 views
Do arduino librarys require the arduino to be connected to a computer?
The title pretty much explains my question. If I'm using a library for example one for an accelerometer does the arduino need to be connected to my computer because it's using a library? Or is the ...
1
vote
1answer
37 views
Troubleshooting duplicate libaries (Arduino motor shield and stepper motor)
I have tried a software. It work flawless on the first laptop in a fresh install arduino IDE environment with the libraries I imported.
However when I copy the exact same program over. I get lot of ...
1
vote
2answers
34 views
Convert library from using bitbanging to hardware SPI
I'm using a MCP3008 8ch 10bit ADC to expand the Analog Inputs for the project I'm working on. The only library I can find for it is here the library is ported from Adafruit's Raspberry Pi library ...
4
votes
2answers
99 views
Why does DHT-library (and others) only allow one object instance?
I came across the problem to handle two DHT22 devices.
I use the Adafruit DHT Sensor library.
Since my Arduino sketch works as a "relay" for Serial commands on a host, I tried to wire up and ...
1
vote
2answers
98 views
Can the Arduino Eclipse plugin use the Arduino IDE's libraries?
In Arduino Eclipse (v3, nightly build) I have not been able to load 'foreign' libraries, those written by me or someone else, so they are not among the available choices in the include-library ...
3
votes
3answers
79 views
How to define a SoftwareSerial object inside a class?
I have a header file called Rhino.h with class Rhino. I want to pass RX and TX pin numbers to this object class, and with this, define a SoftwareSerial object to be used inside the Rhino class. The ...
0
votes
1answer
30 views
VirtualWire send function
I am a little confused on how exactly VirtualWire's "send" function works. After looking at the code, the process I gathered is the following.
In the Arduino IDE, call vw_send() with the right ...
1
vote
1answer
58 views
Cannot include .h files back one directory
I am working on a project with multiple arduinos. I want my folder structure to be as follows:
/
libs/
someSharedFile.h
arduino1/
arduino1.ino
arduino2/
arduino2.ino
When I ...
0
votes
1answer
41 views
Using #define and multiple classes
I am using the FastLED library in my program and the basic usage is that the following lines go at the top of the main sketch:
#include <FastLED.h>
#define NUM_LEDS 60
#define DATA_PIN 6
You ...
0
votes
1answer
49 views
Instantiating bounce library inside a class
I am trying to get my head around how to instantiate objects from existing libaries inside a class object. Specifically I am trying to get the bounce2.h debouncer working.
At the moment my code ...
0
votes
1answer
32 views
Understanding the contents of a library in C
So this is a question not just about the #include but most all includes you find while programming in C.
So I understand a library is prewritten code and when you include that library are you able ...
1
vote
1answer
106 views
Can't compile my library because “String does not name a type”
I am writing a small library to move some code out of the arduino sketch and make it reusable. Problem is that it does not compile since "String does not name a type".
This is my code (reduced):
...
0
votes
1answer
64 views
Help with a rather specific implementation of FFT Library?
So, I guess what I'm trying to do here is properly understand the FFT library posted here by Open Music Labs, done in C++. I believe I understand the Fourier transform, but the FFT has some nuance ...
0
votes
2answers
33 views
Are there any constants for default SPI port pins defined?
I'm writing a library which controls a device using SPI bus. For the communication I need to manually toggle the chip select pin. On most Arduinos SS pin is on D10, but there are also other models ...
1
vote
0answers
57 views
Receiving and transmitting messages simultaneously
tldr; I am writing a mesh network software using arduinos. I need to wirelessly receive, process, and transmit data, all simultaneously. I am aware of protothreads library, and the other software ...
0
votes
3answers
90 views
Use only one pin as serial output/input with arduino
I'm looking for a way to use Arduino UNO's as serial outputs or input "individually", I don want to have an RX pin for each TX pin. I know the library SoftwareSerial, but I'm not sure if it is posible ...
0
votes
2answers
339 views
Exit status 1 expected primary-expression before ']' Arduino
Here's the whole error:
Arduino: 1.6.7 (Windows 7), Board: "Arduino/Genuino Uno"
*\readMifare\readMifare.ino: In function 'void loop()':
readMifare:113: error: expected primary-expression before ...
1
vote
0answers
32 views
Adafruit Trinket 3v with LED matrix backpack producing error
I have been wanting to create a Arduino watch. I built the circuit with an Adafruit Trinket 3v and an Adafruit LED matrix backpack (8*8). When I try to upload this example code:
...
1
vote
1answer
35 views
Defining object
I am trying to hide libraries behind another, for simplicity. But I can't deal with the objects required by the libraries. Basically I want to use the objects both in my .cpp and .ino file, but I am ...
0
votes
1answer
70 views
Pass class's public function as an argument to external command
I am trying to write a library for encoders.
main.ino:
#include <./Encoders.h>
Encoders encoders();
void setup(){
Serial.begin(9600);
}
void loop(){
Serial.print("");
...
2
votes
0answers
62 views
Arduino Mega And L298N Motor Driver Board (Controlling using AccelStepper Library)
Can someone help me how to use AccelStepper library in setting the origin position of the stepper?
We are using a tact switch and an L298N driver for the stepper motor in setting the origin of the ...
1
vote
2answers
115 views
Help Understanding FFT Analysis and analogRead()?
Here's the deal, I'm attempting to learn how to use an FFT (Fast Fourier Transformation) Library for sound analysis (link is here). My issue is that this comes with included C++ code to show users how ...
1
vote
2answers
142 views
Override #define statements in libraries
I'm using a library that, by default, wants to use Serial2 as the interface to a display, however, I'm working with an UNO which only has one serial interface, so the compile fails. I'm trying to use ...
0
votes
1answer
28 views
Is Teensy compatible with the Arduino keyboard library?
I am thinking about buying some Teensy micro-controllers, but I want to know if the teensy are compatible with the arduino keyboard library.
0
votes
2answers
74 views
How to avoid delays in the loop() function?
vI have this functions in my loop() and it publishes temperature reading to Ubidots(an IoT cloud service) using the #include library but it seems it returns a boolean and so the loop is delayed until ...
0
votes
0answers
38 views
Is there a lean or modular SD library?
I'm using the SD library to perform two simple tasks.
reading a configuration file
writing a logfile
I don't want to use subdirectories and can live with only two filenames. However, after ...
1
vote
0answers
41 views
Does anyone know a library that can emulate 3 throttles?
There is this library, but it emulates only one throttle and one rudder. The X Y Z axis don't work because they are addressed from -127 to 127 and I need 0 to 255. I just need one more throttle axis. ...
0
votes
1answer
38 views
Basic usage of Nick Gammon's Regexp library
I am using the following code modified from the examples. I get the count of matches but the actual value is not displayed
#include <Regexp.h>
void setup() {
Serial.begin(115200);
...
3
votes
1answer
820 views
WARNING: Category '' in library *any library* is not valid. Setting to 'Uncategorized'
I'm using Ubuntu 14.04 with arduino Galileo and the newest arduino IDE from arduino.cc and every time I compile I got this warnings with any library in place of EEPROM, SD, Wire, Wifi and a lot of ...
0
votes
0answers
130 views
Software Serial library not working in Arduino
In an Arduino project I am not able to compile some code that uses the SoftwareSerial library. I get the following compilation errors. How do I correct the code?
C:\Program Files ...
4
votes
1answer
104 views
Creating a library for attiny85 out of working program
Apologies if this is the wrong sub-forum, the involvement of ATTiny and arduino places this into a strange category. Please correct me if I should post elsewhere.
It is important for this to be a ...
0
votes
0answers
23 views
How to drive a 4bit GLCD?
i've got a huge (about 6 x 23 cm) graphics LCD. I used my multimeter and the datasheet the LCD driver chips (6 x KS0104 and 2 x KS0103) to get the pinout. It has the following pins: GND, M, FCS (not ...
0
votes
1answer
206 views
NTP Client Library. Set sync provider pointing to public class function. Possible?
I am trying to develop a NTP client library for ESP8266/Arduino to make adding NTP sync an easier task.
Basically, I've thought about a constructor as NTPClient(String host, int interval); and a ...
0
votes
0answers
74 views
How to add .h file to ino
I'm using the arduino along with a Raspberry pi. For this, I'm using ino to compile sketches through the command line. I now want to use the adafruit motor shield along with my arduino. This requires ...
0
votes
1answer
31 views
Can I increase the 10 event limit in Simon Monk's Timer library?
On Dr. Monk's library page here, he states: "You can attach up to 10 events to a timer." I am wondering if this is a hardware limit, or if it was an arbitrary number he chose for his library.
In ...
0
votes
1answer
200 views
Migrating from ATMega2560 to ARM based — Teensy vs Due?
I currently have a project that is working on an AtMega2560 platform (heavily derived off the Arduino Mega). It mainly involves a GPS module and SD card.
Going forward I am looking to add a few more ...
0
votes
2answers
52 views
How to install a library for a single project
How do you install an Arduino library so it's only available for a specific project?
Say I have a codebase located at /myproject, and I want to install libraries at /myproject/lib/somelib. I can't ...
1
vote
2answers
695 views
Problems with Draw Loop using u8glib
I am using an Arduino Mega and a 12864ZW LCD with the u8glib library and the following code to draw to the LCD:
U8GLIB_ST7920_128X64 Display(LCD_E_PIN, LCD_RW_PIN, LCD_RS_PIN, U8G_PIN_NONE);
void ...
0
votes
0answers
28 views
Modbus loopback test
I am using Simplemodbus library with arduino Uno board. I have used below code with 5 device with different slave ID. The Indivually these slaves are working fine. Now I am trying to connect it in ...