We’re rewarding the question askers & reputations are being recalculated! Read more.

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
46 views

StepperLab3 library and Liquidcrystal

I want to control a stepper while displaying user menus on a freetronics style 16x2 LCD. I'm using liquidcrystal for my menus and in order to get non-blocking control of the stepper I've imported the ...
0
votes
1answer
138 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
0answers
217 views

MPU9250 library exposing raw values

I'm looking for a library which would allow me to read the MPU9250 data without having to deal with float. So far, I have found 3 libraries: FaBo_202_9Axis_MPU9250 MPU9250_asukiaaa SparkFun_MPU-...
0
votes
2answers
4k views

Unable to use Keyboard library with Arduino UNO even after changing the firmware

So I'm trying to use my UNO as an HID device. I followed this tutorial, flashed the firmware and got the UNO to be detected as an HID device. However, I am still getting the error 'Keyboard' not ...
0
votes
1answer
187 views

Accesing the USART registers by Arduino

I'm having a hard time understanding how the Arduino libraries are defining the address for accessing the registers of the USART modules. I cant find definition for udr(pointer) as used in the ...
0
votes
1answer
3k 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
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
2answers
65 views

Preprocessing problem

I've a little problem, I'm trying to create a library with processor variables for tune it. So in .ino I declared my preprocessor var, but preprocessor variables appear not defined in my library. (...
0
votes
0answers
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
1k views

read CID of SD card with SD.h library

I would like to be able to read the serial numbers of SD cards using the SD.h library. Only reading the values is enough, I am not looking to modify the CID. This should be possible but I do not have ...
0
votes
2answers
65 views

Pass changing analog value from void loop to library .h file

How would I go about passing a void loop analog read value to a library .h file? I've tried it but it only reads the pot position as soon as I plug the arduino in and does not change once booted up. ...
0
votes
0answers
227 views

conflicts with LiquidCrystal.h and SoftwareSerial.h library?

Simply put, if I include and initialize both libraries, the LCD displays junk. If I don't include and use the software serial lib, the LCD displays correctly. BTW, there are no devices physically ...
0
votes
2answers
93 views

Creating Arduino library file

I need to create a library file for Arduino. While surfing the Internet, it shows me to use C, C++. Is a C++/C compiler mandatory to create library files in Arduino? Or we can use the Arduino IDE to ...
0
votes
2answers
105 views

A class within a class - via an Initialiser Lists: NOT able to update a variable

My test are based on the blog of http://arduinoetcetera.blogspot.be/2011/01/classes-within-classes-initialiser.html. Because I would like to use this idea, I tried with a simple idea, after the ...
0
votes
1answer
4k views

ESP8266 Aes encryption using Arduino IDE [closed]

I'm trying to implement an AES encryption function on my ESP8266 controller, using Arduino ide and this aes library. I finally made it work after many attempts but the output i get from the encryption ...
0
votes
1answer
1k views

How to use different device address for MCP23017 so I can use multiple chips?

I want to use more than 3 MCP23017-E/SP DIP28 chips so I can use many digital pins. I use Adafruit-MCP23017-Arduino-Library. I tried this solution but only device address with 0x00 is working. The ...
0
votes
0answers
27 views

433M modules w. soldered 34.6cm antenna, first test

I'm doing a first tx/rx on a pair of modules, and some hams have alluded that they 'autoadjust' - since I've soldered halfwave antennas onto the modules, what's the optimal range for first tests? And ...
0
votes
1answer
4k views

Debugging my created Library - Error - request for member … which is of non-class type

This seems to be a very common error, I am struggling to understand what exactly the solution to this is. I am attaching everything, library files, code, and errors. If you have a moment, I need ...
0
votes
1answer
55 views

Creating a Library Help with errors

I am attempting to create a library out of an existing code to use inside of another code. To clarify, I have one code, I need to add the functionality of another code to. Instead of plopping the ...
0
votes
1answer
1k views

Programming Arduino With Python [duplicate]

Im a beginner working with arduino. Im little familliar with java syn and its not hard for me to do the work with ide ;but i know python better....is there any Lib that let you program Arduino with ...
0
votes
1answer
718 views

Passing array to library function

I'm trying to pass an array to a library (written in c++) but the error: undefined reference to `MyLib::arrayTest(int*)' collect2: error: ld returned 1 exit status Error compiling. Is being produced....
0
votes
1answer
134 views

Safe changes in the Arduino Libraries and use them

I changed 2 Arduino Libraries because i have a 9 bit data protocol, now i want use the amended Libraries on my Arduino mega2560. At first i have set a 9 bit data mode that can i do when i set the ...
0
votes
0answers
483 views

Arduino Mega And L298N Motor Driver Board (Controlling using AccelStepper Library)

Can someone help me how to use AccelStepper library in setting the origin position of the stepper? We are using a tact switch and an L298N driver for the stepper motor in setting the origin of the ...
0
votes
0answers
107 views

Is there a lean or modular SD library?

I'm using the SD library to perform two simple tasks. reading a configuration file writing a logfile I don't want to use subdirectories and can live with only two filenames. However, after linking ...
0
votes
1answer
144 views

How to drive a 4bit GLCD?

i've got a huge (about 6 x 23 cm) graphics LCD. I used my multimeter and the datasheet the LCD driver chips (6 x KS0104 and 2 x KS0103) to get the pinout. It has the following pins: GND, M, FCS (not ...
0
votes
1answer
1k views

NTP Client Library. Set sync provider pointing to public class function. Possible?

I am trying to develop a NTP client library for ESP8266/Arduino to make adding NTP sync an easier task. Basically, I've thought about a constructor as NTPClient(String host, int interval); and a ...
0
votes
2answers
518 views

Serial Communication Problem Using Eclipse

Please help I have created an Arduino program that will switch the pins when I send a char. It works fine with serial monitor, but the problems come when I send chars with Eclipse using RXTX serial ...
0
votes
1answer
152 views

Querying streaming sensor data on the Arduino board

I am new to Arduino and this forum, so please forgive me if I am asking something really trivial and stupid. I have an Arduino board which collects sensor readings from an MPU6050 sensor (...
0
votes
1answer
642 views

Integrating two Arduino Ethernet libraries in one sketch

I am trying to integrate two different Arduino Ethernet libraries, EtherShield and UIPEthernet in one sketch. EtherShield library is used to control LEDs via Android mobile application. While ...
0
votes
1answer
1k views

undefined reference to `PPMintIn::PPMintIn(int)'

I am making a new library that will utilize PinChangeInt's library. My intention is to further simplify repetitive code by creating a library. (This is to allow for multiple PPM channels without ...
0
votes
0answers
29 views

How to read data from a rotary encoder with ATmega328 [duplicate]

I'm using a home made "bare bones" Arduino, made with the ATmega328, and I need to read angle data from a geared DC drill motor, turning at speeds between 0 and 450 RPM. This is so I can use it as ...
0
votes
1answer
188 views

LGPL and Arduino in Commercial Products

I basically would like to ask this same question (in another context / more generically): https://www.reddit.com/r/arduino/comments/25my2t/lgpl_and_arduino_in_commercial_products/ Stated differently:...
0
votes
1answer
90 views

Problems recycling c++ lib with templated class for Arduino

I have a header & cpp file located in Arduino\libraries\Parentfolder\Header&Cpp. Arduino IDE recognizes my lib (the class is color coded & Sketch->include library->MyLibrary shows in the ...
0
votes
3answers
355 views

Weird issue with software serial?

Hi i am trying to write a library to communicate between the arduino and the esp 8266. I wrote a command that that sends an AT command to the esp chip. So far I have tested these commands : AT, AT+GMR,...
0
votes
1answer
314 views

'serialWrite' was not declared in this scope

Please help me! Once I click the upload button. I get the following error: 'serialWrite' was not declared in this scope Here is my code: int buttonPin void setup () { beginSerial(9600); pinMode (...
-1
votes
3answers
93 views

How to prevent modify library of arduino?

For some reasons of security, I created library for everybody to use, but I don't want people change my library, cause it make device not work. I search around but still not working. Do I need to set ...
-1
votes
1answer
35 views

Please help me fix this error:expected unqualified-id before 'if'|Arduino [closed]

#define inA1 4 #define inA2 5 // 4,5 DC 1 #define inB1 6 #define inB2 7 // 6,7 DC 2 #define inC1 8 // Buzz #define inL1 2 #define inL2 12 #define inL3 3 #define inL4 13 // Den led byte bluetoothByte ...
-1
votes
3answers
173 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....
-1
votes
2answers
34 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 ...
-1
votes
1answer
307 views

Speed of comunication by SI4463 under RH_RF24.h

As in this SO question, I use use a RH_RF24.h to control an SI4463. In RH_RF24, there is not anything about the speed of communication. I need the way to control the speed of communication. Because I ...
-1
votes
0answers
42 views

Adding oled library stops sound from working?

my code is using keypad library and oled display and piezo element. Without the oled code added everything works just fine. as soon as I add code for that, sound stops working. doesn't even call the ...
-1
votes
1answer
1k 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
votes
1answer
420 views

Multiple #ifndef vs. single one #endif

My question is connected with the issue as linked: Is there any good working MODBUS TCP master library available for Arduino? An example of Modbus TCP master library as suggested in the post above. A ...
-1
votes
1answer
109 views

where to get Arduino WIFO101 library that supports WiFi.beginAP() on board MKR1000

The sketch example from page "Wifi.beginAP()" causes compiler error because the return values are not defined for -WL_AP_LISTENING or -WL_CONNECT_FAILED. Board: Arduino MKR1000 WiFi Compiler: ...
-2
votes
2answers
9k views

error: expected unqualified-id before '.' token

I am working on a library to display custom text on a TFT screen and I came up with this error while making an example: EsploraHelloWorld:31: error: expected unqualified-id before '.' token ...
-2
votes
1answer
1k views

Find remote ip address TCP

Found this "Remote IP of TCP Socket" at: https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc3000/f/851/t/380635 I am trying to log the remote ip address of a client. Using Ethernet, ...
-2
votes
5answers
3k views

BH1750 Light sensor always giving output as 54612lx

urgently need some inputs, Connection: VCC-5v GND-GND SCL-SCL(analog pin 5) SDA-SDA(analog pin 4) ADD-NC or GND Code pasted below used library from GIT : https://github.com/claws/BH1750 #include &...
-3
votes
3answers
7k views

How do I initialize a servo object in my own library?

I'm trying to make my first library for Arduino and want to use a servo object in my library. How can I do this?
-6
votes
1answer
141 views

Two programs in one sketch [closed]

I want to create a sketch for 2 LEDs. The first LED in the first tab and the second in the second tab. I need an example please. Thanks. For more details, I want to make the LVIFA_Base for Labview ...