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
1answer
53 views

Linux Compatibility with Arduino [closed]

I'm using a PocketCHIP and its various GPIO to do fun projects. It features a full Linux OS. Every time I add an I/O device, I face enormous issues with libraries. Controlling i2c devices is an open ...
2
votes
1answer
103 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
0answers
26 views

How to find real roots of quartic (4th degree) polynomial with an arduino uno?

what is an easy way to get the arduino to solve a polynomial of degree 4? Basically I am making a robotic arm, and did the painful inverse kinematics calculations to get a quartic equation, which if I ...
1
vote
0answers
20 views

WiFi HaLow library

Does anyone know if some Arduino based library is on the way to support new low power WiFi HaLow modules. If there is, I would like to know for which module? For reference I'm sharing link here
0
votes
1answer
33 views

Arduino library or code for ESP32 to scan for Bluetooth devices?

Is there some code or library that would allow me to scan for nearby Bluetooth devices using a common ESP32 board ? I only found similar code for actual Arduino boards.
0
votes
1answer
40 views

Arduino LiquidCrystal library code prevents ESP32 from running. For 16x2 character display

See bottom for solution. I am trying to run the Arduino LiquidCrystal library example HelloWorld.ino on an ESP32. It seems like it never even executes the Setup() loop. The ESP resets after eight ...
2
votes
1answer
159 views

Arduino IDE - scope of the pre-processor "#define"

I'm creating an Arduino library and have 3 files - a "test.ino" program, and two library/class files: "testLibrary.h" and a "testLibrary.cpp". The library makes use of ...
0
votes
1answer
459 views

Why can't I use Jeelib Sleepy on the Teensy 2 along with Serial

I have been using the Jeelib Sleepy functionality for several years now to achieve low power states on the Arduino ATmega328/1280/2560 boards, specifically the LoseSomeTime functionality. I want to ...
3
votes
2answers
788 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 ...
3
votes
1answer
11k views

FastLED library: How can I adjust the brightness of a single pixel on an absolute scale?

I'm using the FastLED library to control a digital RGB LED strip. While this library seems very comprehensive in capability and ease of use, I do not yet see a way to simply set the brightness value ...
0
votes
1answer
111 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 ...
1
vote
0answers
60 views

Getting location working on SIM800L with TinyGSM?

Hey Arduino enthusiasts :) I have purchased a LilyGo T-Call board. Which has a Esp32 processor and a SIM800L GSM module. For my project i want to send location data over the 2G cellular network. I am ...
1
vote
0answers
46 views

RTClib.h problem

In Library Manager RTClib and DS3231 work somehow with older versions. RTC time can picked only once and then it give bullshit. Using newest versions screen is empty. In picture first time is right, ...
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 ...
1
vote
1answer
58 views

Why does the send pin influence the receive pin with Arduino Capacitive Sensing Library

I'm trying to figure out how the Arduino Capacitive Sensing Library https://playground.arduino.cc/Main/CapacitiveSensor/ works. It says: When the send pin changes state, it will eventually change the ...
1
vote
1answer
715 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
166 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 ...
1
vote
1answer
362 views

Adafruit_Arcada' does not name a type;

I am trying to program an adafruit pygamer (which says it's compatible with Arduino). I have added the ZIP folder for the library into the library folder om my PC where all of my folders are supposed ...
0
votes
1answer
92 views

Code hangs with SPI, and OLED labraries (Possible conflict between Adafruit SSD1306 and hardware SPI libraries)

I have an issue with using two libraries together, namely SPI.h that is installed together with an Arduino and Adafruit_SSD1306.h. My code was getting stuck so I stripped it down to the bare minimum ...
1
vote
1answer
101 views

Unable to find headers from installed platformio library

I wrote a library that I intend to use in several project and I published it via platform.io's library management system. https://platformio.org/lib/show/12820/FastLED-SectionManager This is the first ...
0
votes
1answer
120 views

TimedAction.h: No such file or directory

I am new to Arduino and I am trying one of the library TimedAction.h for sudo multithreading on Arduino. However the library is not present in the Arduino. How do I install external library(if it is)?
1
vote
1answer
114 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'...
16
votes
6answers
57k views

How can I get the source files for Arduino libraries?

I've been looking for a while inside Arduino's files to find the core library. However, I haven't found them yet. Where on my hard drive can I obtain the core library files (.cpp and .h) necessary for ...
9
votes
2answers
16k views

How does this code line detect if a serial interface is connected?

I am working with some code for remote temperature sensor nodes. They turn the debug interface on and off depending on if anything is conneced to the serial port or not. The code is on Github here. ...
0
votes
1answer
563 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 ...
1
vote
2answers
128 views

which is the best way to declare Serial while creating Arduino library?

Well, I am trying make a library for HMI display. display and Arduino comminicate with Serial. So I will so many times Serial port. Generally I will use Serial.write commend. if I examine other ...
1
vote
1answer
199 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 ...
1
vote
1answer
61 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
1answer
50 views

Artefacts on display when adding seemingly unrelated code

I have this simple program, where I am implementing a menu structure on an OLED display and a rotary encoder. The code works functionally as intended, however when I add more menu items, then I get ...
0
votes
1answer
15k 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
vote
1answer
99 views

Custom library for Arduino to encode and decode JSON Web Tokens

So I have been recently been trying to create a library for Arduino to encode and decode JSON Web tokens(JWT) using HMAC-SHA256. For those unfamiliar, JWT has 3 parts - The header, body and signature....
0
votes
1answer
61 views

Customizing system settings with defines?

I have written a library that contains a statically allocated buffer (f.g. struct taskList proc[TBL_SIZE];) TBL_SIZE is a macro currently defined in my .h file. I have heard that there's a way to set ...
1
vote
1answer
101 views

Select pin to connect RF receiver

I use the RCSwitch library receive signals with a RF receiver. I really need to change the pin the receiver is connected to on my Arduino Uno. What should I change in my sketch? What pins can I ...
0
votes
1answer
75 views

I2S read() is which channel?

The Arduino I2S reference describes the I2S standard and functions available with the standard I2S library, (Bizarrely it doesn't reference the existing read() function which is used in the examples ...
-1
votes
2answers
3k views

Error Downloading http://downloads.arduino.cc/packages/packages_index.json

I managed to update the library but getting error "Error Downloading http://downloads.arduino.cc/packages/packages_index.json" when updating the Board Manager. I switched the proxy to no proxy instead ...
1
vote
1answer
1k 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
58 views

EtherCard library without TCP

I have connected some sensors to an Arduino Uno (but the final code should run on a Pro-Mini) with an ENC28J60 shield. The sensor code works fine - until I add EtherCard. I tried UIPEthernet first, ...
1
vote
0answers
13 views

arduino loRa module search tutorial

I recently purchased a LoRa module (https://it.aliexpress.com/item/1005002116232826.html?spm=a2g0s.9042311.0.0.38c74c4dPnh2Gg) but I have not found any working tutorial for this model can you help me
0
votes
2answers
38 views

Init a calss inside a class

I'm building a monitoring IP class, IPmonitoring, that using an SPIFFS class that I wrote, flashLOG. Inside IPmonitoring I have 2 instances of flashLOG (code below). My sketch have several instances ...
0
votes
1answer
231 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
40k views

Error: "invalid use of non-static member function" while calling a function from my own class-method

I'm having a bad time trying to call a correctly-working expression (ultra[currentSensor].ping_timer(echoCheck)) from an own class method (myclass::run) instead of from void loop(). I'm getting the ...
1
vote
1answer
458 views

ESP32 Arduino Bluetooth Serial does not reconnect after disconnecting

The basic ESP32 Arduino Bluetooth Serial example pairs and connects as expected, BUT once I disconnect the Bluetooth terminal it stops responding to new events at all, once I reset the esp32, it ...
-1
votes
2answers
232 views

How to convert an int to const int in Arduino?

For a specific project, I need to convert an int to a const int variable type. int i = 10; boolean ShiftRegister[i] //Throws error const int i = 10; boolean ShiftRegister[i]// Works Fine as i am ...
1
vote
0answers
182 views

Bluetooth HID for mouse project

I’m working on a project, to create an air mouse for people with repetitive strain injury (since I have it as well). I’m flexible with the hardware required. The plan is to use data from an IMU for ...
1
vote
3answers
3k 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 ...
1
vote
0answers
44 views

Can I create an hemi-cycle raising signal with one pin and the other hemi-cycle signal with another pin?

I am new to Arduino, I would like to know if someone could help me to create this type of signal with the Arduino Uno. Many thanks!!
1
vote
0answers
26 views

Touch sensor trouble

I need help I use Touch Sensor(T)v.0 and it always receives a signal not matter I touched it or not. Here is the code. #define TOUCH_PIN 7 int touchVal = 0; void setup() { Serial.begin(115200); ...
0
votes
1answer
625 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 ...
1
vote
1answer
51 views

What pins to use on a Teensy to get data from multiple peripherals?

I'm using a Teensy to keep records on the location, speed, altitude, and direction of a weather balloon I'm hoping to launch. I have an Adafruit LSM9DS1 and a Ublox NEO-M8N with compass (HMC5833L) so ...
1
vote
0answers
57 views

generate and using a precompiled library ESP32

I would like to ask you how I can generate a dot_a file for a given library for ESP32? I want to replace my .cpp file with a precompiled .a in the Arduino IDE. Is that possible? Can you please guide ...

1
2 3 4 5
10