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
16 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
157 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
1answer
44 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
219 views

src folder in sketch structure and include library from subfolder

My Arduino/PlatformIO libraries folder libraries └── cleaner_robot └── TB6612_Dual ├── tb6612_dual.h └── tb6612_dual.cpp I used this code to innclude it: #include <...
0
votes
1answer
18 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
26 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
14 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
153 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
43 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 ...
0
votes
1answer
41 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 ...
1
vote
2answers
82 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
149 views

Trying to instantiate a DS3231 real time clock within a library

I'm trying to write a library encapsulating things that I do with a DS3231 real time clock. I have managed to compile a sketch using the library, but it apparently blows up when attempting to call ...
7
votes
5answers
11k 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 ...
0
votes
1answer
1k views

Arduino force feedback vibration gamepad

I'm projecting a gamepad with Arduino Micro. I'm using the Arduino Joystick Library. I'm building this gamepad for racing games so I need to catch signal like hit_the_wall, hit_another_car. I wonder ...
0
votes
1answer
31 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
25 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
31 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
2k 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); ...
0
votes
2answers
35 views

Including keypad library removes sound from my piezo element

I am using the keypad library to include keypad and input numbers. when a specific number is entered a sound must be made. However when I input using the serial monitor , sound is working. But when I ...
0
votes
0answers
17 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
1answer
120 views

How to use existing (non-arduino-specific) library with subfolders in Arduino IDE?

I have a generic c++ library that i'd like to use in an arduino project without making changes to the library code. The library contains subfolders and files in the library include other files of the ...
0
votes
0answers
16 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
51 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
25 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
1answer
259 views

Installing Jan Breuers SCPI Parser

I am trying to install/include Jan Breuer's SCPI parser. I was not able to find any documentation to accomplish this. I copied the contents on of the GIT zip file to my Libraries directory, but when I ...
2
votes
2answers
4k views

Why does the RCSwitch.available return false?

I am trying to use this example code from the RCSwitch library: /* Simple example for receiving https://github.com/sui77/rc-switch */ #include <RCSwitch.h> RCSwitch mySwitch = RCSwitch();...
-1
votes
1answer
74 views

Bypass a function error

I have a long code written in Arduino101 that works fine. I use a prepared function (connected to a library) in my code that I have not written it. My input to this function is an array. In 99.9999..% ...
0
votes
2answers
381 views

ESP12E Soft WDT reset stack trace leads to libraries

Im using ESP12E DevKit v2 (esp8266 wifi module) board for controlling relays and displaying DHT22 temp,humidity on web server. It runs smoothly when the web client is closed but when i leave the ...
2
votes
1answer
146 views

Using PBC library on Arduino

I want to know if there is a way to install/use the PBC library on Arduino UNO. I want to implement some cryptographic primitives using PBC library. Thank you.
0
votes
1answer
41 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
35 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 ...
1
vote
1answer
2k views

Using Capacitive Sensing Library with a 74HC4067 multiplexer

I'm trying to use the Capacitive Sensing Library by Paul Badger in conjunction with one or more 74HC4067 multiplexers to achieve a lot of capacitive touch inputs. I came across this youtube video ...
0
votes
1answer
4k views

Arduino IDE: Board nodemcuv2 (platform esp8266, package esp8266) is unknown

I am receiving this error after reinstalling Arduino IDE (everything was working fine [same components, same code]): Board nodemcuv2 (platform esp8266, package esp8266) is unknown I have recently ...
0
votes
0answers
28 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
24 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
166 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
248 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
115 views

Unresolved reference to public function from library

I have three libraries that I've written and I'm trying to use. They're stored as follows Documents ├── Some/Path/To/Folder │ └── firmware.ino └── Arduino └── libraries ├── error ...
0
votes
1answer
684 views

Wiring ESP8266 and PN532

I'm trying the Android Hce example in this PN532 library. I can't find how to set SDA and SCL address in the code, so I tried connecting them in CLK and SD0 pins. The serial monitor gives me "Didn't ...
1
vote
2answers
2k views

Are there any good and maintained libraries for using DS2482 I2C to 1-Wire bridge?

The DS2482-100 and DS2482-800 are I2C to 1-Wire bridges which are useful for driving complex 1-Wire networks. These are natively supported by a number of packages in Linux so you can interface easily ...
0
votes
1answer
120 views

Trying to read different gas levels with MQ2 Gas Sensor

I found a link on how to connect MQ-2 Gas Sensor to Arduino Uno. http://electronicsprojectshub.com/how-to-connect-mq2-gas-sensor-to-arduino/ After I bought all the parts and tried it out, the sensor ...
0
votes
1answer
132 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 ...
0
votes
1answer
47 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
39 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 ...
1
vote
2answers
4k 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 ...
5
votes
1answer
444 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
0answers
265 views

Using the Broadcom AFBR-S50 with Arduino

I'm trying to interface with a Broadcom AFBR-S50MV85G ToF sensor over SPI using an Arduino, which is complicated by the fact that the provided library and reference application is written for Cortex ...
0
votes
1answer
69 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
2answers
58 views

How do I segment Arduino program when line count is so large that code maintenance is difficult?

I'm looking for the Arduino/C++ equivalent of COBOL's 'copy' statement. I'm working on a program that is approaching 600 lines of code in the TopLevel.cpp source file. This is hard to manage ...
0
votes
1answer
66 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 ...

1
2 3 4 5
9