Questions tagged [core-libraries]

Refers to the Arduino-specific library code which is included as standard with the official Arduino IDE.

Filter by
Sorted by
Tagged with
4
votes
1answer
89 views

Tone() conflicts with IRremote library (multiple definition of `__vector_7')

I have just started with Arduino and C++ so I apologise if my question is very basic. I am trying to use tone() with a passive buzzer to create a sound while also using the IRremote library for a ...
0
votes
1answer
39 views

Is there a simple HTTP(S) library that doesn't rely on WiFi?

I'm trying to implement a Mobile Network (only) for the ESP32 using Arduino IDE. So to be able to connect to website up/download files etc. I need to be able to handle various HTTP PUT/GET/POST ...
0
votes
2answers
42 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 ...
0
votes
2answers
155 views

Multiple void loops with ESP8266

I want to run multiple sketches on one sketch. I use the method of multiple void loops. It works but esp8266 take a lot of time to execute commands. void Setup() { setup1(); setup2(); } void ...
0
votes
1answer
33 views

Where does the Arduino core include the name of the sketch?

I'm trying to look through the Arduino core to find where "mySketch.ino" is included or implemented. In 'Arduino.h', the prototypes void setup(void) and void loop(void) are defined, in 'main.cpp', ...
0
votes
1answer
215 views

My verbose appears “unable to cache built core”

At early morning i have accidentally the error of GNOME for my OS, so I was forced reinstall my OS couse i don't have any backup for my packages and my database. i'm installed Arduino-IDE 1.8.7, ...
2
votes
0answers
244 views

Prevent Arduino IDE from rebuilding the core library after every restart

I have an Arduino IDE 1.8.5 setup (installed from the ZIP file) which I use to work exclusively with a single board. Every time the IDE is restarted, the first compilation takes much longer than ...
0
votes
2answers
3k 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
114 views

Equivalent to POSIX mmap() in AVR-libc

Is there an similar function in AVR-libc/Arduino C++ to mmap()? I'm looking for a way to place machine code in memory at runtime and make it executable.
0
votes
2answers
590 views

Arduino core structure and timer usage

I needed to use TC1 for input capture, but also analogWrite() and an approximate 1 ms interrupt to poll the user interface (encoder, button). The Arduino Nano's ATmega328p (datasheet, beware: a lot ...
1
vote
1answer
281 views

Arduino IDE missing libread.s0.6

I just recently installed the ESP8266 libraries on the arduino IDE using the boards manager, the code compiles fine with the ESP, but when the board is changed to UNO, i get this error, opt/arduino-1....
1
vote
1answer
152 views

Format error with ESP8266 compile

I get this error when I try to compile and upload the code for the ESP826612E fork/exec /home/c/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++: ...
3
votes
2answers
3k views

How to pass variables to custom callback functions

I want to use the Ticker library of the ESP8266 Arduino core to (asynchronously) delay the switch of a pin to a desired state like below. I am not sure about the "here is" function definitions and I ...
1
vote
0answers
195 views

attachInterrupt HIGH

I'm trying to understand the implementation of attachInterrupt. For LOW, CHANGE, RISING and FALLING it seems simple enough; it sets some chip-specific registers and stores the given callback in ...
4
votes
4answers
428 views

Is there an advantage to set pinmodes via bitmask and register?

I'm working with the capacitive sensor library currently and the author does not use digitalWrite(), but instead sets the output of a pin via functions changing the bitmasks of certain registers: ...
2
votes
1answer
175 views

Is there a counter library in Arduino?

I'm looking for a counter that can be incremented and will overflow with predictable behavior, preferably reset to 0 on overflow. I've tried using integers for counting but I'm getting weird overflow ...
0
votes
1answer
189 views

Where can I find the Arduino Mega core code?

I am looking to modify the receiving hardware serial buffer size for the Arduino Mega. To do so I need to redefine it in HardwareSerial.h in the core code. However, I can't seem to find a copy of the ...
1
vote
1answer
129 views

How to detect Genuino 101 from inside the code?

I am using a custom library for Arduino Mega which uses AES library for AES-128 encryption. However, when I try to use that library in Intel Genuino 101 development board, it shows compilation error ...
-1
votes
1answer
140 views

Keeping track of the number of rotations of a stepper motor

Using the stepper.h library in Arduino IDE, how can we control the number of rotations the motor has to move?
0
votes
1answer
285 views

most effective ( progsize/speed ) SD card usage

I am making a project with several modules and libraries involved. I just tested the SD lib example, and got a binary at ~14KB - way too much. I'd like the SD bits to go below 8KB, since it's just ...
5
votes
2answers
5k views

Wire.h not found!

Here's the code that's making this error: #include "Wire.h" Here's the error: fatal error: Wire.h: No such file or directory #include "Wire.h" ^ compilation terminated. Error ...
0
votes
1answer
129 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 ...
7
votes
7answers
3k views

Is there a way to replace an Arduino core function without modifying the Arduino code?

(Let's just skip the suggestions that it's the wrong idea and interrupts for a while...). Is there a way to replace the digitalWrite() method (for example) so I can add something more to happen in ...
5
votes
2answers
9k views

Can the Arduino Eclipse plugin use the libraries installed by the Arduino IDE?

In Arduino Eclipse (v3, nightly build) I have not been able to load 'foreign' libraries, those written by me or someone else, so they are not among the available choices in the include-library dialogs....
0
votes
0answers
105 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
2answers
372 views

Question about include statements and details in Arduino.h file from core library

This is more of a C/C++ question. However the files I am asking about are a part of the Arduino library. In /arduino-1.6.5-r5/hardware/arduino/avr/cores/arduino/Arduino.h : #ifndef Arduino_h #...
1
vote
1answer
113 views

Alternative to patching core library source and header files

I am following a DIY guide that requires me to patch two arduino core library files: HID.cpp and USBAPI.h. This is not really practical for many reasons. I am not a native C programmer, but I am sure ...
1
vote
2answers
3k views

Where do avrdude parameters get defined in the Arduino IDE?

I am interested in learning how the Arduino IDE handles parameters in order to correctly upload hex files with avrdude. I found this in boards.txt: uno.name=Arduino/Genuino Uno uno.vid.0=0x2341 uno....
1
vote
1answer
209 views

Requesting references for learning about the upload process

I would like to know of references that discuss the process of uploading code onto an Arduino board. I have read this reference on hacking the Arduino and an outline of the build process. I also found ...
1
vote
1answer
2k views

Including libraries from header files sometimes doesn't work

I, once again have difficulties including libraries from code files other than my .ino file. I have several .cpp and .h files in my project to keep it sorted and clean. However one of my header ...
7
votes
1answer
10k views

How shiftOut function works internally? (explanation on source code)

I were examining shiftOut() function code in wiring_shift.c and I didn't quite understand what is going in digitalWrite function. I see !!(val & (1 << i)) is taking the bit value from val ...
0
votes
1answer
665 views

Overloading function loop

I want to introduce a boolean that is the first iteration of loop and then false every subsequent iteration. I want it invisible, so I have to modify loop in some way. Is that possible?
-1
votes
1answer
107 views

interrupt and/or other ressources used by Time functions micros() and delayMicroseconds()

I want to use Arduino Uno (Rev. 3) resp. Arduino Nano for time critical ignition control of a combustion engine. Software is developed under arduino rev. 1.6.2. The only Arduino system functions i ...
0
votes
1answer
925 views

Program attiny13 with Arduino uno 1.6

I am looking for the boards.txt, platform.txt and core files needed for the programming of the ATtiny13 with the Arduino Uno. Those I find on the internet probably only works with Arduino 1.0 and not ...
-1
votes
1answer
913 views

Source Code for strcpy and strcat

Does anyone know the location of the assembler file for strcpy and strcat for the Arduino? I wish to modify it.
5
votes
2answers
335 views

Asynchronous control framework

Can anyone recommend an Arduino-based asynchronous scheduling library for controlling a small mobile robot? I'm writing the control code for a small 2-wheeled Arduino-Uno based robot. It has a few ...
3
votes
1answer
354 views

Arduino standard libraries location

I want to read the source code of an arduino library that comes with the IDE. Specifically the GSM.h I dont know the location of the standard libraries that come with the IDE. I only know the ...
0
votes
1answer
311 views

Arduino core for ATMega16u2

I've looked around a ton so it's probably not available but does anyone know if there is a usable core for the ATMega16u2 (the chip the Uno and Due uses for USB to Serial). I have a project I was ...
14
votes
4answers
46k 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 ...