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
-1 votes
0 answers
39 views

Arduino Micro Wrong Output

So I am just trying to make a very simple code that will open cmd, make the color green and then run dir/s to make it look like it is doing something. It is a basic school project. But for some reason ...
Erentow's user avatar
0 votes
1 answer
48 views

Keypad library isn't working or I am wrong somewhere [closed]

I am using PICSimLab to simulate a keypad. The configuration of the keypad is as shown in the picture: and the code is: #include <LiquidCrystal.h> #include <Key.h> #include <Keypad.h&...
ElectronicsBeginner's user avatar
0 votes
0 answers
24 views

How to store a structure of 200 bytes into a external EEPROM? [closed]

I am trying to store accounts into External EEPROM. The struct has 200 bytes but i have read that you can only store 32 bytes at one time. So how do I store a structure of 200 bytes. Is there a ...
jajicek's user avatar
0 votes
1 answer
71 views

Problem installing RPLidar library

I'm trying to add the RPLidar library. I've already checked this solution, but it's not working for me, I get this error : Error: 13 INTERNAL: Library install failed: extracting archive: Not a ...
Younes's user avatar
  • 9
1 vote
1 answer
52 views

Why 0 devices, but not 1?

I have found a sketch in Wokwi where a MAX7219 LED matrix is used. The sketch subject is to display 0 using <LedControl.h>. I don't understand why it's nessesary to send 0 unlike 1 in fourth ...
Artur Krush's user avatar
2 votes
1 answer
121 views

How to change the direction of a stepper motor using the AccelStepper library?

I'm using a Nema 17 stepper motor (200 steps) and a DRV8825 motor driver. This is the configuration I am using: I am using a 9 V power supply. The dirPin is connected to pin 3 on the Arduino board, ...
Michael Junior's user avatar
3 votes
2 answers
2k views

is #ifdef __SD_H__ considered a bad practice?

Say I'm working on a library^1 to which I want to add support for SD.h^2 but knowing for a fact that many microcotrollers don't support SD.h (therefore they result in compilation errors [eg. Attiny85])...
Giorgos Xou's user avatar
1 vote
0 answers
60 views

MKR GPS shield inconsistent GPS connection/data printing...library issue?

I have been using a MKR WiFi 1010 board with GPS shield for a very long time (year+) and have not been able to solve my problems with the GPS data dropping out. The setup for my field application is a ...
ktn8rgrl's user avatar
2 votes
1 answer
1k views

Impossible to install the esp_camera library

I cannot install the esp_camera library. When I try to add the .zip, I get "does not contain a valid library. Everything about this ESP-32 Cam seems to rely on that library, and I can't find a ...
brunobhr's user avatar
1 vote
1 answer
119 views

Get 3-inch e-Paper working on a Nano

Please help! I purchased a 3-inch e-Paper Display from Waveshare, which appeared to suit my project well. The exemplary little code to show an image was easy to set up and to demonstrate functionality:...
nick's user avatar
  • 19
1 vote
0 answers
496 views

Keyestudio KS5009 ESP32WROOM32 Smart Home

I'm encountering persistent errors with the sample code provided for my smart home kit project. Despite conducting extensive research and troubleshooting efforts, I haven't been able to find a ...
Mars's user avatar
  • 39
2 votes
1 answer
307 views

Uploading a Library to the library manager from a Github branch

I am trying to upload a library to the Arduino Library Manager. I know the GitHub - arduino/library-registry: Arduino Library Manager list repository, and I have already read the instructions, but I ...
Cheche Romo's user avatar
-2 votes
3 answers
143 views

Using Soft UART - how include library

I want to use the soft serial communication example. But when I compile it, it sais: /home/xxx/Arduino/SoftwareSerialExample/aa/aa.ino:28:28: schwerwiegender Fehler: SoftwareSerial.h: Datei oder ...
jento's user avatar
  • 65
2 votes
0 answers
162 views

Ability to connect 2 or more w5500 Modules and deal with them as objects

I wish to create a rudimentary ethernet in/out - switch/hub where I can (sort of) daisy chain my boards. (I don't wish to use a ethernet switch/router/hub) One port would be acting as server The ...
Ohbhatt's user avatar
  • 76
0 votes
0 answers
30 views

What library does the Beetle BLE utilize for BLE commands?

I am trying to pair two gloves containing beetle BLE's on each, one set to a peripheral role and one to central to control leds for kids' party jewelry. The Arduino.BLE library does not work with this ...
Stephen Terry's user avatar
4 votes
2 answers
533 views

Trying to resolve invalid conversion from 'byte' {aka 'unsigned char'} to

I'm trying to use an existing Arduino library on the Raspberry Pi Pico. The library is here: https://github.com/j-bellavance/EdgeDebounce/tree/master It's based on some interesting insight at Jack ...
Jeff Haas's user avatar
0 votes
2 answers
49 views

Why does analogRead(A0) deliver different Values when called in a library file vs calling it in the sketch directly

I wanted to write a library representing a sensor to later on have an array of sensors. I generated a file MoistureSensor.h: #ifndef MoistureSensor_h #define MoistureSensor_h #include <Arduino.h&...
Nico Sz's user avatar
4 votes
1 answer
114 views

How do you take the simplest continuous reading from a Garmin Lidar Lite V4 using I2C on a Particle Boron v4.1.0?

Hey there Stack community. I'm working with the Particle Boron v4.1.0. I'm connecting a Garmin Lidar Lite V4 on I2C. I'm using the LIDARLite_v4LED.h header file found in the library given for this ...
Katie Neeley's user avatar
2 votes
2 answers
219 views

With reference to Arduino Keyboard library, it does not have a keymap for UK keyboard, has anyone created a KeyboardLayout_en_UK.cpp file for this?

With reference to the Arduino Keyboard library, it does not have a keymap for the UK keyboard. I have tried to find a keyboard map that shows the hex value for the UK keyboard but I didn't have any ...
Susan's user avatar
  • 123
1 vote
1 answer
436 views

How to drive two Stepper motors and use an Ultrasonic sensor together?

I am working on an autonomous robot using two 4-pin stepper motors, HC-SR04 ultrasonic sensor, 2 L298N motor drivers (one for each motor), and an Arduino Uno. My problem is that when I use the stepper ...
Renier Jr.'s user avatar
2 votes
1 answer
43 views

Having issues understanding what "#define GET_STATUS" does

I am trying to use a Waveshare 4.2inch e-paper display with an Adafruit Feather Adalogger M0, but am having issues with two separate instances of #define GET_STATUS being defined differently in ...
BeingPool's user avatar
1 vote
0 answers
188 views

Using library functions in timer ISR ESP32

I'm trying to use a library function in my ISR function that uses the internal timer to trigger every 1 ms. The chip that I'm using is an ESP32-C3-MINI. Here is my current code: main.cpp #include <...
Max's user avatar
  • 111
-1 votes
3 answers
106 views

What is the best way to create a library from existing functions?

I was tasked to take functions that work, and create a library with these functions. Take a look at the following function that existed inside a program: char* Num_to_HEX_char_array(int32_t value) { ...
user1584421's user avatar
  • 1,395
-1 votes
1 answer
50 views

Unable to get my created library to work - while it compiles

I am experimenting with creating my own Arduino libraries. Unfortunately, while the program compiles, the end result does not work. For purposes of experimentation, I have broken down the library in ...
user1584421's user avatar
  • 1,395
2 votes
1 answer
748 views

ESPAsyncWebServer code not compiling

Error messages Arduino: 1.8.14 Hourly Build 2020/12/15 11:33 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most ...
 Lasmon's user avatar
1 vote
1 answer
264 views

1MHZ Attiny85 RF with MANCHESTER library

I'm trying to set up a transmitter made by the following components : Attiny85 (I need 1MHZ speed) Cheap 433mhz transmitter (FS1000A) The library I am using is the Manchester library GitHub. The ...
BruceWawe's user avatar
0 votes
1 answer
1k views

Just installed Arduino 2.0.3 - what is windows path to associated libraries?

Just installed Arduino 2.0.3 and I attempted to build a sketch which includes a library that I manually installed in version 1.8.19 and it can't be found: In my program I have #include <DS3231.h>...
raddevus's user avatar
  • 402
1 vote
0 answers
59 views

Adding RTC Library for Arduino Project in Visual Studio

I am working in an Arduino project in visual studio. I need to get and set time to a RTC clock. That's why I am adding a ds3231 header file in my project from GitHub. When I want to build "it's ...
Iqbal Hossain's user avatar
0 votes
1 answer
96 views

Making library for arduino

I'm learning library making on arduino , I want to make a library that works with arrays a user sets, e.g: User sets array of int, when a certain function is been called the library will check if ...
Joseph Afodu's user avatar
-1 votes
1 answer
925 views

I need help with creating a menu using u8g2 library

I want to make a project with a (Nokia 5110) display using u8g2 library. Here I have the code for my program: #include <Arduino.h> #include <U8g2lib.h> #include <TM1637Display.h> #...
kshysztof's user avatar
0 votes
1 answer
40 views

Confusion regarding PID library?

PID library is available(built in) in standard installation of arduino IDE or do we have to download it additionaly after installing our IDE? How can i check which of libraries are available in my ...
DSP_CS's user avatar
  • 101
1 vote
0 answers
456 views

Is there a FreeRTOS library for an Arduino Nano 33 BLE?

I can't seem to find any library online so I can start developing FreeRTOS tasks for the Arduino Nano 33 BLE in the Arduino IDE. Is FreeRTOS incompatible with this Arduino?
bro's user avatar
  • 11
0 votes
1 answer
168 views

Best way to "hack" a library without forking it

I'm using Visual Studio Code and PlatformIO. I added some libraries to my project using platformio.ini: lib_deps = olikraus/U8g2@^2.34.4 crankyoldgit/IRremoteESP8266@^2.8.4 plerup/...
Mark's user avatar
  • 393
5 votes
1 answer
940 views

Library not found when using the arduino-cli command (although working with the Arduino IDE)

I have a sketch which I can upload without problem with the Arduino IDE. I installed the arduino-cli Version: 0.28.0 Commit: 06fb1909 Date: 2022-10-18T15:53:04Z. I want to compile and upload a code ...
ecjb's user avatar
  • 165
1 vote
3 answers
412 views

Is there a way to strip a library from all unused parts and defines, automatically?

Say you want to investigate part of the code you use from a rather large library, but it's buried between all kinds of #defines and classes etc, that you're never gonna use in your code. Is there a ...
Gaai's user avatar
  • 55
0 votes
1 answer
118 views

#define from main (.ino) not considered by comiler in own libaries

I have got the problem, that my #define from main (.ino) is not considered by the comiler in my own libaries. This #define MQTT_MODULE is only considered in the main (.ino) programm, but not in ...
stevo's user avatar
  • 51
-4 votes
1 answer
102 views

Can I run Arduino code on a 6502?

I've been doing projects with the arduino boards for a long time and accordingly also with the libs from adafruit etc. But that was too boring for me and I wanted to get more into the matter, so I ...
highling's user avatar
2 votes
1 answer
74 views

How to configure 16x2 character LCD to work with 8bit?

I have the LiquidCrystal library installed but all the examples are for 4bit connection, I want to drive the LCD with 8bit. In LiquidCrystal.cpp file it says; When the display powers up, it is ...
ElectronSurf's user avatar
-1 votes
1 answer
80 views

Library fails to compile

I want to try out this library: https://github.com/connornishijima/arduino-volume3 I downloaded the zip file from github, renamed it, and included it as a library in the IDE. So run one of the ...
user1584421's user avatar
  • 1,395
1 vote
1 answer
137 views

Fluctuation in 4 half bridge load cell via combinator

I'm currently using a Sparkfun 4 Half-Bridge load sensor (50 Kg) with combinator and amplifier both are from the Sparkfun. Link:https://www.sparkfun.com/products/10245 (For Load Sensors)https://www....
Ayub 's user avatar
  • 13
0 votes
1 answer
40 views

TVout characters don't line up

I am messing around with the Arduino TVout library and I have created some multi-character tiles (I don't know what else to call them). Just to start out, I created a simple X that spans across 4 ...
mhay10's user avatar
  • 13
1 vote
0 answers
970 views

PlatformIO - Creating a library including a 3rd party library

I'm using PlatformIO, and I'm trying to create a library who uses another library in it. (1) For that I created an empty library called ABCD.h stored in a newrep github repository. (2) 3rd party ...
guyd's user avatar
  • 1,043
0 votes
1 answer
445 views

Create a library when using PlatformIO

(1) I'm trying to work with libraries in PlatformIO format", for , of a library, located in Arduino's libraries, where code is llocated under \src directry. (2) Any other library, not it "...
guyd's user avatar
  • 1,043
1 vote
1 answer
1k views

Arduino create Json Array with double values and 2 decimal point

How i can create a Json Array with double values and 2 decimal point using the ArduinoJson Library? https://arduinojson.org/v6/how-to/configure-the-serialization-of-floats/ In the folowing small ...
Carlos Costa's user avatar
1 vote
1 answer
64 views

Please help me navigate the stepper motor object definition in the documentation

I am trying to use the stepper library and the stepper object is documented like this This function creates a new instance of the Stepper class that represents a particular stepper motor attached to ...
Confused individual's user avatar
-1 votes
1 answer
152 views

How to use two timers 1 and 4 simultaneously in Arduino Mega 2560

I activated timer 1 and its interrupt on the 2560 board and it works properly. Now I want to run Timer 4 as well. I installed the Timer 4 library, but when I compile the program, I get the following ...
ali's user avatar
  • 11
1 vote
0 answers
950 views

AccelStepper motor current position

When using the AccelStepper library to control the motor, I need the current position of the motor at any given time when in motion. However, the functions in this library blocks so currentPosition() ...
thediyer's user avatar
0 votes
2 answers
160 views

Odd behavior of defines - is this Arduino specific and how does it work?

A question I have long had regards an interaction between #define statements and a library header include. I've seen several Arduino libraries use this rather convenient configuration system where you ...
user avatar
1 vote
2 answers
2k views

Undefined reference to function in custom library

Hello I am making a private Arduino library but am having trouble understanding how it is linked. Why does this h file work, but when I move the definition of board_led to a matching c file, it throws ...
Samuel Jenks's user avatar
1 vote
1 answer
57 views

Is it possible to use mathematical sets and their operations in arduino?

In python there is the object set that resembles a mathematical set, namely, you can remove elements from it, add elements to it, you can calculate the intersection/union between two sets, etc. Is ...
Schach21's user avatar
  • 121

1
2 3 4 5
11