Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
vote
1answer
1k views

Where could I find the “Serial.find()” source code?

As written in the title, could you tell me where to find the source code of the function "Serial.find()"? I haven' t installed the Arduino IDE, so I'm glad if you could me link a web resource, or if ...
1
vote
1answer
25 views

Do arduino librarys require the arduino to be connected to a computer?

The title pretty much explains my question. If I'm using a library for example one for an accelerometer does the arduino need to be connected to my computer because it's using a library? Or is the ...
1
vote
1answer
122 views

Defining object

I am trying to hide libraries behind another, for simplicity. But I can't deal with the objects required by the libraries. Basically I want to use the objects both in my .cpp and .ino file, but I am ...
1
vote
2answers
1k views

Override #define statements in libraries

I'm using a library that, by default, wants to use Serial2 as the interface to a display, however, I'm working with an UNO which only has one serial interface, so the compile fails. I'm trying to use ...
1
vote
1answer
2k views

Migrating from ATMega2560 to ARM based — Teensy vs Due?

I currently have a project that is working on an AtMega2560 platform (heavily derived off the Arduino Mega). It mainly involves a GPS module and SD card. Going forward I am looking to add a few more ...
1
vote
2answers
729 views

Can I automatically loop inside a library?

I want to write a little library; the unlibrarized functionality does: checking in every loop-cycle some inputs, doing some calculations with it and finally setting a boolean to either true or false. ...
1
vote
1answer
56 views

How to change the topic_name string to PROGMEM?

I'm trying to save SRAM on my Arduino pro mini by going through some libraries. I've noticed that to use my Arduino as a ROS node the library stores the topic name and message type as constants. ...
1
vote
1answer
1k views

Using union to return a range of bits from a data frame: wrong approach?

I'm working on an adaptation of Jason Leyrer's Guitar Hero Library for Arduino. My version is for a DJ Hero controller, and I've also borrowed some code from this Arduino forum thread: topic=120527 (...
1
vote
1answer
91 views

Arduino C++ library syntax

I am looking at modifying the H3LI331DL I2C library posted by Seed Studio for communicating with the H3LI331DL accelerometer. The library hardcodes the address for the accelerometer in the header file....
1
vote
1answer
22k views

How to write RFID data using the RFID-RC522 chip

I have got this library+code example from a friend, to read RFID numbers using the RFID-RC522 chip: RFID.ino #include <RFID.h> #include <SPI.h> /** * RFID pins * MOSI: Pin 11 / ICSP-4 * ...
1
vote
1answer
532 views

mega include a library

This question is a little related to this one: How to compile and upload the specific (.cpp + .h) code? I've installed MdbBillValidator to my arduino libraries collection. I tried both on ubuntu &...
1
vote
1answer
2k views

Can anyone suggest me a software timer library that does not use polling but timer ISR instead?

There are many software timer libraries available in Arduino. A library called SimpleTimer http://playground.arduino.cc/Code/SimpleTimer is really good with many functions, but it uses polling. If ...
1
vote
1answer
3k views

Using multiple timers and avoiding conflicts

I would like to use three timers in CTC mode to launch three Interrupt Service Routines at different frequencies. In this application I need to use the servo library, millis() and micros() functions....
1
vote
1answer
2k views

Issue with adding a library: No such file or directory

I downloaded a Library called "Morse" which I got from the Arduino website: http://arduino.cc/en/Hacking/LibraryTutorial (all the way at the bottom of the page there is a link called Morse.zip) And ...
1
vote
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
vote
1answer
1k views

Include statement not working

I am creating my own library for the Arduino and I have the following code: #include <Arduino.h> #include <Servo.h> class ServoMotorController { public: ServoMotorController(...
1
vote
1answer
156 views

Why are the files not being created correctly?

I have been through http://arduino.cc/en/Hacking/LibraryTutorial but I can't do it. Whenever I create a new sketch and try to save it as .cpp or .h from the Save As button in the Arduino IDE, it gets ...
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 ...
1
vote
0answers
23 views

Use Arduino Libraries in PlatformIO?

I'd like to use Arduino libraries installed in C:\Users\Username\Documents\Arduino\libraries in a PlatformIO project. Is it possible? if so, how?
1
vote
0answers
75 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 ...
1
vote
0answers
113 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. ...
1
vote
1answer
436 views

Looking for light-weight Arduino OLED library that supports text and bitmaps

I'm trying to incorporate a screen into my Arduino code which is quite large already. The Adafruit SSD1306 library is overly large and has a lot of unnecessary things in it. I've found the ...
1
vote
0answers
48 views

Zero-ing Compass | Following Magnet Strip Robot

So my problem is purely programming, I understand the problem but can't figure out what to do, Is there a library? should I create my own code for Zero-ing my compass so I don't have value from earth ...
1
vote
1answer
118 views

How to use IRremote library with atmega8a

A few days ago I tested a circuit on a breadboard based on a ATmega8a with 1 MHz internal oscilator. It sould turn on and off a relay based on a IR code that is received and if it matches the ...
1
vote
0answers
2k views

WifiEsp client TIMEOUT when put on a loop

Hello I have been using the WifiEsp to send and receive data from Thingspeak. All is well until I put my http request on the Void Loop() section. My Goal: I want to receive data every loop not on ...
1
vote
0answers
1k views

CRC usage when ack disabled in nRF24L01

In the documentation of the nRF24L01 library I use (library), the CRC state (on/off) and length can be set or get. It seems to be used for auto ack, but when I switch auto ack off, what is the use of ...
1
vote
0answers
2k views

Using ArduCam library for Ov7076 camera

I am using OmniVision OV7076 camera (without FIFO) with Arduino Uno. So I want to use Github code provided in ArduCAM repository. They have provided OV7076 FIFO version straightaway but it is using ...
1
vote
0answers
518 views

FreeRTOS Implementation on Arduino

I am trying to make an RGB LED with Fan Controller for PCs. It is an Open Sourced project. But I want to implement RTOS using this implementation of it as a function in it, namely rollColor(), takes a ...
1
vote
0answers
239 views

Ethernet module ENC28C60 doesn't connect to internet when DHCP on router is disabled.

Update: Examples from library are working if DHCP is enabled! Using this library I try to connect with static IP but it always say DNS failed. Ethernet module is blinking that means is good ...
1
vote
1answer
631 views

Troubleshooting duplicate libaries (Arduino motor shield and stepper motor)

I have tried a software. It work flawless on the first laptop in a fresh install arduino IDE environment with the libraries I imported. However when I copy the exact same program over. I get lot of ...
1
vote
0answers
176 views

Receiving and transmitting messages simultaneously

tldr; I am writing a mesh network software using arduinos. I need to wirelessly receive, process, and transmit data, all simultaneously. I am aware of protothreads library, and the other software ...
1
vote
0answers
248 views

Adafruit Trinket 3v with LED matrix backpack producing error

I have been wanting to create a Arduino watch. I built the circuit with an Adafruit Trinket 3v and an Adafruit LED matrix backpack (8*8). When I try to upload this example code: /*********************...
1
vote
0answers
58 views

Does anyone know a library that can emulate 3 throttles?

There is this library, but it emulates only one throttle and one rudder. The X Y Z axis don't work because they are addressed from -127 to 127 and I need 0 to 255. I just need one more throttle axis. ...
1
vote
0answers
101 views

Teensy and MS5803 sensor

I'm trying to use the MS5803 pressure sensor with a Teensy 3.2. Compiling the Sparkfun, or other, libraries, however, results in no output. Can you provide guidance on how to modify the libraries to ...
1
vote
0answers
134 views

Arduino with NFC: Garbled Serial Monitor

I started working on a small programming project just for fun and I have got stuck. I have been using the following tutorial to make an Amiibo Music Box Now using the libraries the tutorial suggested,...
1
vote
0answers
341 views

How to effectively modify a library to be able to function with Mozzi Library?

I have sketch that runs almost exactly as I would want it to. Now I am trying to add sound to it using the Mozzi Library instead of just using the tone function. This way I can avoid having to put a ...
1
vote
0answers
66 views

Change ports in library file [closed]

I want to change the output ports in a library file because I use an Arduino Mega and the file uses an arduino uno. How to change the output ports?
1
vote
1answer
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 ...
1
vote
0answers
2k views

Servotimer2.h is not recognised as a library by arduino uno

I'm doing a project for school with an arduino uno. I want to control a motor using a RF-module as remote control. I need the library Virtualwire.h to use the RF-module and the library Servo.h to ...
1
vote
0answers
254 views

Arduino ProMini green led flashing and unable to reset

so I'm using a promini running on solar power. For some reason, after sometime it gets stuck with the green led flashing and only by cutting power can I reset the promini. Even the reset button doesnt ...
1
vote
2answers
802 views

Include my header files

let's suppose I have folder called AES, in this folder is file "AES.ino" where is code and folder "AESLib" what is library. In "AESLib" is file called "AESLib.h", now when I try to include AESLib.h ...
1
vote
0answers
386 views

Custom Library Pin Change

I'm using an Arduino Uno with Funduino I2C 1602 LCD display. The LCD display is connected as LCD SCL--> A5 SDA -->A4 I need to measure the temperature, pressure and the velocity of a duct flow. So ...
1
vote
1answer
2k views

Problem connecting Arduino Uno with Wifi and NFC

I'm new here and also new to Arduino. I've got a rather specific problem and I've posted to the official Forum on arduino.cc two days ago (original Post) Sadly, I've yet to recieve any help and ...
1
vote
1answer
6k views

Why PIN3 stays at 1v3 in a IR emitter project?

Here is my very simple IR emitter circuit. OSI5FU5111C-40 is an infrared LED. I am using the IRremote library from here in this simple sketch, #include <IRremote.h> unsigned int raw[100]={... *...
1
vote
0answers
426 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 ...
0
votes
3answers
417 views

Pass Several Values to Library

Unfortunately I have yet to learn C++ though I have experience with C# and other non-C languages. After trying for the past 5 hours to pick up what I can from Stack and other sites I haven't found a ...
0
votes
3answers
317 views

What is the meaning of the preceding character on several library defines?

I have been reviewing the code for several libraries,mostly by SparkFun, and looking at the defines for for instance the chip select pins for their hardware. In the defines, rather than being a ...
0
votes
2answers
1k views

Are there any constants for default SPI port pins defined?

I'm writing a library which controls a device using SPI bus. For the communication I need to manually toggle the chip select pin. On most Arduinos SS pin is on D10, but there are also other models ...
0
votes
1answer
1k views

Updating MAX7456 library to work with Arduino 1.6.6

I've got this library for communicating with the MAX7456 chip. The library is abandoned and the only one I found that actually works, so I'd really like to use it. It compiles fine with Arduino IDE ...
0
votes
1answer
196 views

How to share a library on Arduino Playground?

I have written an ISR-based timer library for Arduino Uno and I would like to share it on the website and get it reviewed. But I am stuck on how to post it to playground.