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 [core-libraries]

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

0
votes
1answer
31 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
155 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, ...
1
vote
0answers
177 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
0answers
249 views

Import complex sketches into Atmel Studio 7

my Arduino software has grown too much so I had the idea of moving to AS7. My sketch is made of 2 .INO + 1 .h files and uses a 3rd party library. Everything compiles fine in the Arduino IDE. When ...
0
votes
2answers
2k 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
94 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
467 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 ...
0
votes
1answer
196 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
121 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
2k 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 note sure about the "here is" function definitions and I ...
1
vote
0answers
179 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 ...
5
votes
4answers
350 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: ...
3
votes
1answer
165 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
145 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
126 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
127 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
231 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 ...
6
votes
2answers
4k 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
117 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
2k 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 ...
4
votes
2answers
8k 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
95 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 ...
-1
votes
1answer
362 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
109 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
200 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 ...
5
votes
1answer
9k 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
647 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
100 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
918 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
886 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.
4
votes
2answers
309 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
301 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
287 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 ...
12
votes
4answers
42k 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 ...