Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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
22 views

How to Create a reference to an External Print object

Right now I have an object: class Dog { public: Dog(uint8_t I2c, Stream& feedback); void Speak(); private: uint8_t _I2c; Stream& _output; }; Dog::Dog(uint8_t I2c, Stream&...
2
votes
1answer
36 views

Specific values not showing when using a numeric keypad

I have attached a 3x4 keypad to my Arduino Leonardo as an input method. Whenever I press the buttons, the majority of the keys work but specific ones don't. Here's my code, I've set it up to beep a ...
0
votes
0answers
37 views

Arduino and rf24 library

I recently bought two "SparkFun Transceiver Breakout - nRF24L01+ (RP-SMA)" and the antenna. I used the hookup guide from SparkFun to hook one breakout board to my Arduino running the "Getting Started" ...
1
vote
2answers
54 views

Why is there no embedded c code in arduino libraries?

When I took a look at how the arduino libraries were coded I expected to see register names like I/O registers(PINx,DDRx,PORTx) and other such registers with values assigned to them but instead I saw ...
0
votes
0answers
9 views

Arduino SpeakJet Library

I am using Arduino IDE v.1.8.1. I have downloaded, installed and trying to test the SpeakJet library, v.1.3, written by Mike McCauley. However, many errors occur during the verify/compile process, ...
0
votes
1answer
26 views

Looking for light-weight Arduino OLED library that supports text and bitmaps

I'm trying to incorporate a screen into my Arduino code which is quite large already. The Adafruit SSD1306 library is overly large and has a lot of unnecessary things in it. I've found the ...
2
votes
2answers
162 views

How to determine the source of constants in libraries?

Preamble: I am trying to figure out how to program and use the timers in the Feather M0 using the Arduino IDE. I have seen a number of examples published, but I'm not one to just blindly copy some ...
1
vote
2answers
389 views

How to write a library that support both HW and SW Serial communication and allow user to chose which one to use?

I'm working on a library for Arduino/ESP8266/Teensy that use serial to send AT commands. I want to make it as customizable as possible, so I avoided to hardcode the serial and I ask for a reference in ...
0
votes
2answers
44 views

How would I include Arduino libraries using AVR-gcc without the IDE?

I am writing my own code for the Arduino Uno. I compile my code with AVR-gcc, and then upload it with AVRdude. I am not using the Arduino software, but I do have it installed and working on my PC. I ...
0
votes
0answers
38 views

Arduino hangs when sending data using UDP

I am trying to use the W5500 ethernet chip with the Arduino to send some stuff over UDP, but my program hangs when I call Udp.endPacket(). The library in question is here: https://github.com/sstaub/...
0
votes
0answers
33 views

Rc-Switch Receiver Code not receiving anything

Hi so I'm Having Problems on my receiver code which uses the RC-switch.h library, The transmitter code is OK and it prints the corresponding values on the serial monitor but the receiver code doesn't ...
0
votes
0answers
24 views

Virtual Wire transmitter code

I'm Having problems on my virtual wire transmitter code. when i press one button the backward button is continuously being pressed even when im not pressing it. Here is the code // TRANSMITTER CODE #...
0
votes
0answers
19 views

Servo.h and ServoTimer2.h difference

So i'm trying to code a servo motor to turn left when a button is pressed and turn right if another button is pressed i already have a code for it on the servo.h library but it has a problem with the ...
1
vote
1answer
128 views

How to install your own library with Arduino IDE 1.8.5?

I'm struggling a bit with Arduino language + its IDE not being 100% real C++. I wrote my own I2C library for a sensor but can't get the IDE's compiler to recognise it. I'm using Ubuntu 18.04. I get ...
1
vote
2answers
45 views

Attach Interrupt with Library

I am trying to make a library for Arduino, which requires an interruption, but the problem is that when I try the attachInterrupt function inside my library, there's a problem about attachInterrupt is ...
0
votes
0answers
31 views

MAX6675 gives a climbing reading

I am using a MAX6675 board and a k-type thermal couple to measure temp. The problem is even when running the example the temp value keeps climbing. MAX6675 test 27.25 C = 27.25 F = 130.10 109.00 C = ...
1
vote
2answers
112 views

Where should a modified “pins_arduino.h” be stored for Arduino IDE compile?

Our PCB uses an ATmega2560 chip and uses most of the pins, including some that are not defined in the standard pins_arduino.h module, since that module only provides for the pins that are brought out ...
0
votes
0answers
28 views

Cannot load anything from library

So I installed libraries through the Arduino interface (Sketh->Include Library->Manage Library). Then I check: C:\Users\username\OneDrive\Documents\Arduino\Libraries, and I confirm the new libraries ...
1
vote
1answer
43 views

How to avoid calling multiple times Wire.begin() in libraries?

it's all in the title ; I'm developping a library and use *TwoWire pointers in this library ; but I am using an external library that calls Wire.begin(). I've seen something about TWCR register in ...
0
votes
1answer
182 views

Specified folder/zip file does not contain a valid library

I am trying to use this library. But when I try to import the .zip file (of the directory) downloaded from GitHub, Arduino IDE says "Specified folder/zip file does not contain a valid library"
-1
votes
1answer
53 views

Multiple #ifndef vs. single one #endif

My question is connected with the issue as linked: Is there any good working MODBUS TCP master library available for Arduino? An example of Modbus TCP master library as suggested in the post above. A ...
0
votes
1answer
33 views

LiquidCrystal library and timers don't seem to be compatible

If I set timer2 to Compare Match mode, my LCD display stops working. If I use Overflow Interrupt it works fine. Here's my test code. I have a loop() function which does its thing, and a timer ...
0
votes
0answers
26 views

StepperLab3 library and Liquidcrystal

I want to control a stepper while displaying user menus on a freetronics style 16x2 LCD. I'm using liquidcrystal for my menus and in order to get non-blocking control of the stepper I've imported the ...
0
votes
1answer
25 views

CMDmessenger library

I am trying to use the CMDmessanger library on my Arduino uno, and am facing an issue. My issue starts right from the ArduinoController.ino example. When i send the frequency command 3,1; The led ...
1
vote
1answer
272 views

How to transmit string data using the rc-switch library?

I am using the rc-switch library for sending and receiving data. In rcswitch library, there is no method to send string data. I am using below method to send the string message in char buffer. ...
1
vote
1answer
53 views

Error: “undefined reference to …” when calling non-void class' functions from within class

I haven't used an Arduino for anything as complicated as this project before (single sketch projects so far), and am struggling getting my code to compile now that I'm creating my own libraries for ...
2
votes
2answers
222 views

Arduino Libraries: Declaring variables as public?

How come I never see any Arduino Library expose some of it's internal variables as public in the header file? I only see functions which are declared as public, while every variable is declared ...
0
votes
1answer
83 views

Passing reference to hardware between methods in custom class

I'm a C++ / Arduino newbie, trying to build a custom library for the first time. I created a unit called CDSensors.cpp, which has two methods, SetupSensor and ReadSensors. The sensor is a SparkFun ...
0
votes
2answers
42 views

3rd Libraries: fatal error: Something.h: File does not exist [closed]

I created this question because I find many questions with similar problems, so I wanted to provide a reference/ more generic question for these type of problems. For my projects I have installed ...
0
votes
2answers
40 views

Tian stops working after some hours

I'm having a very strange problem. I have a Tian that is programmed to send out sensor data to a server every x seconds. My program run well but after 14,15 hours of operation it stops working and I ...
0
votes
1answer
70 views

Is DateTime from RTClib giving garbage dates/times?

The RTC is working fine, but I'm having trouble with the DateTime class. Based on the following test, it seems like its math is wrong. #include <RTRlib.h> void loop() { auto ts = TimeSpan(0,...
0
votes
1answer
54 views

LGPL and Arduino in Commercial Products

I basically would like to ask this same question (in another context / more generically): https://www.reddit.com/r/arduino/comments/25my2t/lgpl_and_arduino_in_commercial_products/ Stated differently:...
0
votes
2answers
35 views

Libraries/classes using other libraries/classes

This is, hopefully, a simple issue! I'm trying to access my fully working libraries (fully compiles, and works with the hardware perfectly) from another library (Computer.h) to abstract it away from ...
0
votes
1answer
35 views

Difference between Ciao REST server and Ciao REST connector and when to use each or the other

I'm reading the Ciao library and can't make out the difference between Ciao REST server and Ciao REST connector. When is the connector suitable and at what point do I need the server? This is a ...
0
votes
1answer
29 views

adafruit LSM9DS0 Library - ok with Uno but compile error with LinkitOne?

I'm calling an adafruit Flora LSM9DS0 magnetometer using the Adafruit library with the following sketch: #include <Wire.h> #include <SPI.h> #include <...
0
votes
1answer
106 views

Import library in Arduino IDE

I'm trying to use an HX711 load cell amplifier with my NodeMCU 0.9. I've found this library on Github and, following this guide, I tried to use it. Unfortunately I keep getting this error: sketch/...
0
votes
0answers
102 views

Import complex sketches into Atmel Studio 7

my Arduino software has grown too much so I had the idea of moving to AS7. My sketch is made of 2 .INO + 1 .h files and uses a 3rd party library. Everything compiles fine in the Arduino IDE. When ...
1
vote
0answers
26 views

Zero-ing Compass | Following Magnet Strip Robot

So my problem is purely programming, I understand the problem but can't figure out what to do, Is there a library? should I create my own code for Zero-ing my compass so I don't have value from earth ...
1
vote
1answer
139 views

Trying to make sense of the coding style in Arduino libraries. (Particularly the Radiohead library)

I've been using the Arduino IDE for some time now, and I want to shift to coding for the bare AVR microcontroller. So I wanted to begin by porting required arduino libraries to C/C++. I started with ...
0
votes
1answer
35 views

Not getting pure color while using the FastLED with WS2812b

I am working with the LED strip WS2812b and FastLED library, currently I have only 3 LEDs connected in such a way that the first 2 receive a color (say green) and the last one receives another one (...
1
vote
1answer
289 views

Ubuntu class string has no member remove

I am running some code that works fine on my windows system using the .remove method. On Ubuntu 16.04 I get the following errror: error: ‘class String’ has no member named ‘remove’ To see if it ...
0
votes
0answers
74 views

MPU9250 library exposing raw values

I'm looking for a library which would allow me to read the MPU9250 data without having to deal with float. So far, I have found 3 libraries: FaBo_202_9Axis_MPU9250 MPU9250_asukiaaa SparkFun_MPU-...
0
votes
1answer
693 views

SSD1306 / U8glib display fonts and commands

I cannot seem to find any reference for the SSD 1306 or U8glib display font library or any command reference, like all the options for display() etc. For my fonts I been going into the utility folder ...
0
votes
1answer
56 views

Problems recycling c++ lib with templated class for Arduino

I have a header & cpp file located in Arduino\libraries\Parentfolder\Header&Cpp. Arduino IDE recognizes my lib (the class is color coded & Sketch->include library->MyLibrary shows in the ...
0
votes
1answer
32 views

List of sketches disappears off the bottom of my screen

v 2:1.0.5 The list of sketches disappears off the bottom of my screen and there is no scroll to reach them. This renders the IDE nearly useless. Is there a solution?
0
votes
1answer
34 views

Arduino library creation - Calling library and Merging

I am new to creating a library in Arduino. I was able to create a library from YouTube. I want to merge two other libraries into the library I created. Can you please help me to do so? I already ...
0
votes
0answers
49 views

How to build my own system with from the Linino source code with Arduino Tian?

I am a newcomer to Arduino. I bought an Arduino Tian board and would like to build my own system based on the instruction. However, after "make", I cannot find a compatible image with Arduino Tian. ...
0
votes
2answers
923 views

Unable to use Keyboard library with Arduino UNO even after changing the firmware

So I'm trying to use my UNO as an HID device. I followed this tutorial, flashed the firmware and got the UNO to be detected as an HID device. However, I am still getting the error 'Keyboard' not ...
0
votes
1answer
907 views

Save a fingerprint to the database of the fingerprint sensor

I'm using the Adafruit Kookye fingerprint module in my project. Since it can only allocate 256 fingerprints I need to make a program to free the memory and add additional users. I have made the ...
0
votes
0answers
105 views

Accessing list in class crashes the program (ESP32)

I wanted to store objects of a class inside a list that is part of another class. As my program crashed when I tried this I created this minimal example. This uses the LinkedList library, which ...