Stack Exchange Network

Stack Exchange network consists of 175 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

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.

0
votes
0answers
22 views

Arduino to Arduino GPRS communication [on hold]

I am working on a project that requires wireless communication of two arduinos that are 5Km apart. I cannot lay wires and there is no Wifi at either of the locations. So, I am left with GSM(gprs). ...
0
votes
1answer
65 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
0answers
23 views

How can if resolve this conflict between matrix keypad library and neopixel library?

I'm trying to use a 4x3 matrix keypad as a user interface to control parameters of a Neopixel strip control program. I'm using Adafruit's Neopixel library and This Keypad library. Both work fine on ...
1
vote
0answers
26 views

UDP behavior different for STM32

I'm facing a weird situation, where the UDP behavior seems different in STM32 porting (stm32duino). Short question Besides port and address, what are the other parameters that characterize the UDP ...
0
votes
2answers
37 views

Questions about HMC5883L library

I'm studying the structures of libraries currently. I want to learn how good programmers write code, what are the strategies they follow, the art the programmer followed to develop the library. And ...
1
vote
1answer
21 views

fail to pass a value in constructor

I'm making a JSON lib dedicated for my own needs, based on ArduinoJSON v6. I try to define StaticJsonDocument<_docSize> doc in a parametric way but I get this error and I cant find the reason ...
0
votes
0answers
32 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 ...
-1
votes
1answer
145 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 ...
0
votes
1answer
49 views

Invoke a method in the main sketch from within a library

I need to use a specific library that issues error messages in the form of String texts. The library uses the Serial.println() function to send the messages to the Arduino IDE's serial monitor. The ...
0
votes
2answers
51 views

How to generate .a and .so files to add in arduino project

I know to make a library on arduino ide with source codes, but I cant send my source code to another users who want to use my lib. So I need to make a library with precompiled=true info at library....
0
votes
1answer
32 views

Parsing array of an object in a library constructor

I am trying to develop an Arduino library that consists out of two classes. I want 'WayPointStack' to store an array of 'WPCommand', but I can't get it to work. WayPointStack.h #ifndef ...
0
votes
1answer
40 views

Problem with SPI when using rf24 NRF24L01 transceiver with LED matrix MD_MAX72xx

I am currently using Arduino Mega to use a LED matrix and a NRF24L01 transceiver. for LED matrix, I use MD_MAX72xx library. While for the transceiver I use the RF24 library. I am already able to ...
0
votes
0answers
44 views

Read SNMP OID values with Arduino

I wish to read SNMP predefined OID values from other devices, can it be done with Arduino? I searched all over the internet for the past 2 weeks about Arduino with SNMP and found a lot of great ...
0
votes
0answers
50 views

How to attach interrupt to RBDlibrary?

I am pretty new to arduino programming. I want to use the library from the Robotdyn dimmer modul with a arduino uno and a encoder with lcd for a menü but if i attach the interrupt for the encoder (on ...
0
votes
1answer
34 views

Higher precision logarithms

I need to produce a log to base 10 with at least 4 decimal places. However, the log10 inbuilt function is giving the output with only two decimal places. What do I do? Is there a different function or ...
0
votes
0answers
38 views

Adafruit Feather nRF52832 as a SPI slave

Like the title says, I am trying to configure the Adafruit Feather nRF52 as a SPI slave, who will receive information from a MSP430 microcontroller. I have found a few code examples that provide ...
0
votes
1answer
86 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 ...
0
votes
1answer
41 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..% ...
1
vote
0answers
63 views

Millis() is Not Working

I have a sketch that uses two timers using millis() from a library I created to keep time. The timers seem to be working correctly, but when I print the start time of each timer, it is clearly wrong. ...
0
votes
0answers
63 views

Not able to find right library for MPU9250

I am using an Arduino Uno and learning to use the motion sensor. Currently I was not able to find the library which looks simple and would like to get your suggestion. I found this https://github.com/...
0
votes
0answers
110 views

DFPlayer for Writing to SD Card

Can you use the DFPlayer to write to the SD card? Link for DFPlayer: https://www.dfrobot.com/wiki/index.php/DFPlayer_Mini_SKU:DFR0299 Here's the goal of my project. I have a button that, when pressed,...
0
votes
2answers
80 views

Arduino library redeclaration error

This is my first time here and I hope someone can be of help! I'll try to keep it as concise as possible. So I have two sensors/modules, 1 is an LCD screen from elecrow and another is the DS1307. ...
0
votes
1answer
161 views

No matching function call for timer?

I am using the Timer library here with the Adafruit feather m0: https://github.com/JChristensen/Timer https://playground.arduino.cc/code/timer I cannot figure out why I am getting the error: no ...
0
votes
1answer
72 views

SoftPWM update limitations

i'm using arduino to dimmer 9 led strips with different output pins after an FFT audio analysis gives results at 60Hz = 16ms. [FFT is performed by a PC and sent to arduino using a RF24 module] I ...
2
votes
1answer
185 views

I need help with U8GLIB library

I have a project which uses a 128x64 oled display. I have to use the U8GLIB as the available displays change from SSD1306 to SSH1106 depending on when you buy it which that library covers both ...
0
votes
1answer
103 views

exit status 1 - expected primary-expression before '(' token

When I try to compile the following sketch, the compiler returns the error "exit status 1 - expected primary-expression before '(' token", and highlights "midi();" in my code. Here is my sketch: #...
0
votes
1answer
63 views

Where are the implementations of the SdFat BlockDriver methods?

This is most probably more of a C++ question than an Arduino question; but since this is an Arduino library, I am asking here. I am using the SdFat library for my project. The library defines a ...
0
votes
0answers
47 views

Trigger cheap wireless doorbell

I would like to trigger a simple wireless doorbell. The doorbell uses 433Mhz. To read and send signals I am using the FS1000A Set (sender and receiver). I've started by connecting the receiver to the ...
-1
votes
2answers
29 views

Error compiling a sketch to class/library conversion

I'm trying to take a sketch and turn it into a class for a library I'm making, but I'm getting compile issues. This is not a duplicate as suggested. as i explain in the comment and my answer. Thank ...
0
votes
1answer
110 views

'inet_addr_to_ipaddr' was not declared in this scope

I am using ESP32 Ping from this page: https://github.com/pbecchi/ESP32_ping It works fine on ESP32, no compiler error. Because something wrong on my PC, I did fresh install Windows 10 and Arduino ...
0
votes
1answer
28 views

Calling external function from a class function

I'll try to explain my need: I have a generic library I created, called myIOT.h. This class have a pre-configured MQTT and wifi setup. Inside this library there is a mqtt_callback function, for all ...
0
votes
1answer
25 views

How do you remove dependencies from a library?

I'm writing a library for a project i created, but it depends on the Neopixel library from adafruit. I want to remove this dependency and have my library be a stand-alone library. Is there a way to ...
0
votes
0answers
28 views

Passing functions while creating a library [duplicate]

I'm trying to create a library to bind a major part of common code ( starting Wifi, initiate MQTT, OTA and more ). while using same code in a non library sketch, which works as expected, I find a ...
0
votes
0answers
89 views

Parsing multiple jsonObjects with Arduinojson and return a list of values

I am building a table tennis score board which parses json objects with ID and names of players to let the players pick their name inside a menu and later on submit the scores to my server. But I am ...
1
vote
1answer
60 views

New code results in audio noise

I am working on a circuit that can record audio to an SD when a switch is HIGH and stop recording when the switch is LOW. I am using the TMRpcm library. I previously had an issue solved on these two ...
0
votes
0answers
51 views

error while uploading a code

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno" avrdude: can't open input file C:\Users\PETER_~1\AppData\Local\Temp\arduino_build_223764/nyu_probe_activity1_code.ino.hex: No such file or ...
0
votes
1answer
54 views

Trying to save .wav files with new name every loop

I have built a set up with an Arduino UNO hooked up to a switch, so that whenever the switch goes from HIGH to LOW it saves audio to an SD card. I am using the TMRpcm Library. The problem is the ...
0
votes
3answers
165 views

Creating a library for arduino

I found a really nice 24 bit I2C adc which was fairly cheap as well (ADS1219) but as far as I could tell there are no libraries for it so I decided to make my own. I have managed to write functions ...
1
vote
3answers
49 views

Guideline in library creation

According to this example, creation of an Arduino library is quite understandable. But a few things I would like ask (mostly regarding to what to be defined where) when a library is not that simple: ...
0
votes
2answers
65 views

ESP8266 library: 2 requests received instead of 1

I have a strange issue with my sketch using WiFiEsp.h library from https://github.com/bportaluri/WiFiEsp When i send 1 request to my ESP8266 from my browser as http://192.168.0.25 , it seems that my ...
0
votes
1answer
73 views

NRF51822 ± Arduino Uno / ATmegaXXX?

Hello I want to make a simple home automation project and I'd like to use an arduino uno for prototyping and later a atmega for deployment. I need some sort of a mesh communication method. I was ...
0
votes
1answer
60 views

Using timer classes within classes

I am trying to develop a class for a pump that works on a stepper motor, it should be simple but its not working the way I thought it would. Once I move the timer object into the class the code wont ...
0
votes
2answers
106 views

My Ultrasonic sensor is only showing 4cm range?

I am using an ultrasonic sensor SR04 with Arduino Uno and a sample program which I got from the library. However, my output reading is only 4 cm even when there is no object in front of it. I even ...
0
votes
3answers
39 views

Iteed SD card breakout info for Arduino

I got an SD card breakout from an online shop, its the iteed kind without the level shifter, it has the 3.3 / 5 V switch. I cannot find any libraries or write example for it. Has anyone dealt with it ...
1
vote
1answer
178 views

Standard Practice for including custom library in examples folder

I have created my custom library with examples folder in them. The main header file is ABC_Node.h. I am referring the structure of Adafruit libraries for Arduino and in some repos under the examples ...
0
votes
1answer
107 views

Arduino IDE does not display examples folder from my custom library

I have created a custom library for local usage. I call is ABC_node for ESP32 and the structure is as follows: . |-- examples | |-- bnoCalibStorage | | `-- bnoCalibStorage.ino | |-- ...
0
votes
1answer
81 views

Apply patch to library for custom changes in Arduino IDE

I wish to obtain unix epoch timestamps in millisecond precision. I am using an ESP32 along with DS3231 RTC breakout board from adafruit. Apparently the Repository is not maintained often but I see a ...
0
votes
1answer
100 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 ...
0
votes
1answer
33 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
58 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 ...