Questions tagged [library]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

#include <stdatomic.h> generates compile errors with no code

Consider the following (non)code example: #include <stdatomic.h> void setup() { // Nowt. } void loop() { // Nowt squared. } This generates compile errors for several lines of code in ...
2
votes
1answer
45 views

is it necessary to include libraries that are specified in the header file already?

I am using the Adafruit BME280 library in my sketch. In the example sketches, they have included the Wire, SPI and the Adafruit_Sensor library. However, I see that in the Adafruit_BME280 library ...
3
votes
3answers
144 views

Programming Arduino Uno R3 to trigger a relay once every 24 hours

I programmed Arduino UNO R3 to trigger a relay once every 24 hours from the moment it is powered on I calculated milliseconds and used the function delay() 24 hours * 60 minutes each hour * 60 second ...
1
vote
0answers
21 views

How to use LCD display HD44780 with arduino without using any library

My professor wants me to implement a display to an old project prototype we had laying around on the lab. But he wants me NOT to use LiquidCrystal.h library or any other to achieve that. I read ...
2
votes
1answer
36 views

WebSocket Server for MKR1000

I was looking for a websocket server for my MKR100 but nothing I found looks it works. I tried all the libraries that come with arduino but half of those doesn't compile on MKR1000 and those that did ...
1
vote
0answers
16 views

Arduino and ZMPT101B But Not Stable Sigma Output In 7segment Display(TM1637) using filter library

#include <Arduino.h> #include <math.h> //TRUE RMS START #include <Filters.h> //Easy library to do the calculations #include <TM1637Display.h> float testFrequency = 100; ...
0
votes
0answers
33 views

Reading SNMP V2 OID from ESP8266/ESP32

i need to read from my ESP32/ESP8266 some SNMP V2 OID values from my home printer: it exists a library/method that can do that? I've seen some SNMP agents, but they works only with the devie as server ...
0
votes
1answer
107 views

Which Arduinos support ATOMIC_BLOCK?

Is there a definitive list of which Arduino architectures support the ATOMIC_BLOCK() macro, and a list of #defines for each architecture? I've tried searching through the Arduino cores on GitHub to ...
0
votes
1answer
32 views

AccelStepper library advanced codes!

I was trying to find out how this library can run multiple stepper motors at the same time, and I saw this important function called... void AccelStepper::setOutputPins(uint8_t mask) { uint8_t ...
0
votes
0answers
60 views

Arduino-Cli allow download libraries directly from GitHub?

I am creating some libraries that have other dependencies also created by me, and are not yet available for installation via the Arduino Library Manager, these libraries can be found for example at ...
0
votes
0answers
34 views

Is it possible to implement old AVR library onto arduino (specifically, NodeMCU esp8266)

I am a Computer Engineering Undergrad, currently in a cryptography(computer security) course, and I was assigned to do projects about implementing µNaCl library onto Arduino. I currently own a nodemcu ...
0
votes
0answers
38 views

Is it possible to access a RTC variable from outside a Lib [duplicate]

Inside my .cpp file of myESP32sleep library I have a few RTC_DATA_ATTR variables defined OUTSIDE esp32Sleep class ( this is the only way to define them ). How can I access bootCounter outside that ...
0
votes
0answers
43 views

ESP8266httpUpdate library built-in led blinking time

I have been working with the ESP8266httpUpdate library for a while now, I want to change the frequency of the blinking built-in led of the esp8266, I couldn't figure out how this library is commanding ...
0
votes
1answer
33 views

Teensy 2.0 MIDI: Number of notes in a chord limited to 6?

I am using the Teensy 2.0 with USBMidi in a project that allows musicians to use retro computers as "instruments" (https://github.com/fredlcore/midijoy). So far, all these computers had no more than ...
0
votes
0answers
30 views

Arduino Raspberry RadioHead node sends sensor data with sendtowait (ReliableDatagram) raspberry receives but node gets no ack

I have a configuration like following: An Arduino and a raspberry both running with RadioHead library Arduino with sensor sends data to a raspberry gateway using RHReliableDatagram with the sendtoWait ...
-1
votes
1answer
48 views

Vibration pattern matching [closed]

I would like to generate vibration patterns using the SW-420 or something similar that is able to reproduce the same pattern on similar vibrations. So if a 10p coin was dropped on a table from 1m at a ...
0
votes
1answer
118 views

Error in defining Ticker in ESP32 library

I'm using the exact piece of code in my ESP8266 library (which works OK ), but when used in a ESP32 library- I got an error: This is the relevant code snip: void myIOT32::_feedTheDog() { ...
0
votes
1answer
28 views

Arduino Trinket and CCS811 sensor

I have connected trinket and CCS811 I am trying to build and upload sketch to the module: /****************************************************************************** Read basic CO2 and TVOCs ...
0
votes
1answer
36 views

ESP32 using PubSub, creating an error when implemted inside a library

I wish to combine into a single library Wifi + MQTT, for a multi devices project. right after boot, getting Wifi - I get an error the moment MQTT server is trying to connect: mqttClient.connect(...
0
votes
1answer
42 views

Matrix and State Space Arduino Implementation

I wrote an Arduino Matrix class. Then I used this class to implement State Space on Arduino. During tests I stomped upon a problem. After starting the program it stops at some point. I have no idea ...
2
votes
1answer
112 views

Use ISRs inside a library more elegantly

At the moment I try to make a library which uses attachInterrupt(?,?,RISING) to read a sensor. The article of Nick Gammon on Calling an ISR from a class helped me a lot, but his "Glue routines" get ...
1
vote
0answers
26 views

Trying to show g++ (linter-gcc for Atom) where to find Arduino libs

I'm trying to use Atom as an IDE for arduino and arduino-based boards. I'm using arduino-cli for compilation and avrdude for upload, and now I'm trying to use linter-gcc for linting. g++ is running ...
0
votes
1answer
42 views

Changes to user included library

I've been putting a small helper library together which I'm just including manually via the libraries sub-directory. I've just made some changes to the library in the filesystem however when trying to ...
0
votes
0answers
19 views

Arduino multiple sensor lib combine [duplicate]

I'm new to arduino. How can i combine these codes? Thx. (I'm using Uno) #include "DFRobot_BNO055.h" #include "Wire.h" typedef DFRobot_BNO055_IIC BNO; // ******** use abbreviations instead of ...
0
votes
1answer
56 views

Is there a way to remove the 8.3 filename limitation on the SD.h library?

I need to be able to create text files on my SD card that are with names longer than 8 characters (which is what the SD.h currently limits me to). A choice would be to move to the SDFat library but ...
1
vote
2answers
118 views

Arduino Timer 1 Library manipulate Timer value

I'm using Timer1 library for generation of pulse. But in my code, at some places i need to change the timer values. Can anyone suggest the ways to do it. In below code in place of 370000, I need to ...
0
votes
1answer
45 views

How are libraries added to the Arduino library manager?

Who curates the list of libraries in the Tools / Manage Libraries menu, and what is the procedure for submitting code for consideration?
0
votes
1answer
58 views

No Websockets Server for Arduino mkr1010?

I've seen some interesting explanations on using websocket comms on mkr 1010 but it's always handling the mkr 1010 as the client and the server being always a computer or some other "non-arduino" ...
0
votes
1answer
33 views

How to install a dependency library to an Arduino compilation environment?

Following approach A from this Arduino SE answer, I managed to kick off an Arduino CLI compilation in a Docker environment. However, the project I am trying to compile has a dependency on a LCD ...
0
votes
1answer
40 views

Uno - error during uploading with library

I'm writing the code in VS Code on IO Platform. Yesterday i finished my code and uploaded it to the Arduino Uno. It works fine. Next day i launched the VS Code and i changed the code a bit, then i ...
0
votes
1answer
39 views

NFC library for M24SR64

Im currently working on a project where i build an NFC device and needed some guidance in regards to the library needed for the NFC chip to work on the Arduino IDE. The chip is an M24SR64 chip and i'...
0
votes
0answers
53 views

Error compile board LOLIN(WEMOS) D1 R2 & mini

I have a wemos d1 mini and a mpu 6060 sensor. I am trying to send the data from the sensor to Firebase. However i have come across a hurdle which i cant seem to solve. This is my error, can you help ...
0
votes
0answers
17 views

How can I start freshly? Libraries mess Wemos D1 Mini

I am using a wemosd1 MINI which has a ESP8266 module. I am using it for an IoT project, however a lot has been going wrong. With libraries and version types. I want to start over but noticed that ...
0
votes
1answer
85 views

Can't get keypad to use Keyboard.write on an Arduino Uno

I've tried to use Keypad.h and Keyboard.h libraries to get my Arduino to use my Keypad for Keyboard input. I'll start with working keypad code (which is pretty easy but it's my first post so I want ...
0
votes
2answers
61 views

How to change wifi credentials of multiple ESP8266 together

I need to change WiFi credentials of multiple ESP8266 in one go, without needing to change passwords for each of them individually. I know there is a WiFiManager library, which makes your ESP8266 ...
0
votes
1answer
57 views

Keep 5V on while sleep with LowPower library

Is it possible to keep the 5V on, while putting the Arduino (ATMEGA328P) in sleep more, using LowPower library? I'm trying to use this HAT: https://spellfoundry.com/product/sleepy-pi-2-usb-c/ to ...
0
votes
1answer
68 views

Passing a NeoPixel object reference to a custom library

I'm new to Arduino programming and haven't programmed in C++ in the past. I'm trying to create a custom library to cycle a rainbow on my NeoPixel LED strip. I want to pass a reference or pointer or ...
0
votes
0answers
64 views

Arduino pro mini and SIM800L problem with GPRS

I'm trying to create a datalogger that sends data to a server at a certain time. I use SIM800L and Arduino pro mini. Wiring: SIM800L Arduino mini pro RST 7 TX 8 RX 9 ...
0
votes
0answers
31 views

Arduino-compatible Bluetooth classic module to use in a product

I've been designing a product for some time using arduino language, but on our own hardware. Recently a need arose to add some Bluetooth capability to our product. We decided to use BT classic instead ...
0
votes
0answers
41 views

Using SMS to send commands to the Arduino. Having problems in data parsing

I'm still inexperienced in programming and i apologize in advance if my mistakes are stupidly obvious. This sketch I'm working on is a basic GSM project using SIM900a Mini and an Arduino UNO that ...
0
votes
2answers
326 views

displaying a 3 digit clock time on a 4 digit 7 segment display

I purchased one of these 4 digit 7 segment displays using a TM1637. I installed the TM1637 display library from the libraries manager and included it: (#include <TM1637Display.h>). I am ...
0
votes
1answer
548 views

ESP8266 compilation error: “previous declaration of 'HTTPMethod HTTP_HEAD'”

I have an ESP8266 program that used to work but is now failing to compile with this error: C:\...\Arduino\libraries\WiFiManager/WiFiManager.h:25:24: note: in expansion of macro 'PROGMEM' const ...
0
votes
1answer
300 views

Error compiling for Arduino Nano 33 BLE with LiquidCrystal library

I recently started coding in the Arduino IDE for the Arduino Nano 33 BLE I bought. When I choose the Nano 33 BLE as my board, I get the following Error: Arduino: 1.8.11 (Windows 10), Board: "Arduino ...
0
votes
1answer
56 views

IDE finds multiple libraries

I don't understand Arudino IDE. Ever. This is a part of the compilation output: Alternatives for ArduinoJson.h: [ArduinoJson@6.14.0] ResolveLibrary(ArduinoJson.h) -> candidates: [ArduinoJson@6....
0
votes
1answer
55 views

How to declare a pointer for arduino neopixels library so I can set it up in the setup function with dynamic variables?

I am using NeoPixel strips, and I want to be able to declare a pointer to them, but not initialize them until the setup function (because they will initialize with certain variables only made ...
0
votes
1answer
192 views

How to control segments with SevSeg library

The SevSeg library by Dean Reading seems to have a keyword to control individual segments on SSD's. I am using four common cathode, single digit displays. Does anyone know how to program individual ...
5
votes
1answer
470 views

Recommended way to fork a library

I want to extend a library, available on github to add some features I need. Of course I will made available the new source code as well. Because it's the first time I do this, I'm not sure how to do. ...
0
votes
1answer
107 views

How should I customize UIPEthernet constants?

I am using UIPEthernet to get an Arduino Nano to drive an ENC28J60 Ethernet Shield for a UDP-based application. I'm customizing a number of its #define parameters to change default settings to save ...
0
votes
1answer
87 views

Adafruit ImageReader Library 2.3.5 added several library dependencies

Why has Adafruit ImageReader Library v2.3.5 recently added six dependencies on other libraries for hardware I'm not using? I used the v2.3.2 of the Adafruit ImageReader Library successfully two ...
0
votes
0answers
117 views

Mqtt setCallback with arduino mega in custom library

in pubsubclient library in method Set callback, calback is defined as MQTT_CALLBACK_SIGNATURE I found in code #if defined(ESP8266) || defined(ESP32) #include <functional> #define ...

1
2 3 4 5
10