ArduinoCore-avr
ArduinoCore-avr copied to clipboard
The Official Arduino AVR core
Only have Arduino Micro board to test on. The ide fails to make the attempt to upload a sketch if the COM port is unavailable after detaching the USB serial...
This code hangs forever, even when Serial repeatedly receives 0xCA, tested on Arduino Mega 2560 R3: ``` while (!Serial1.find(0xCA)) ; ``` The reason is in Stream `findMulti`: https://github.com/arduino/ArduinoCore-avr/blob/master/cores/arduino/Stream.cpp#L270 Consider this...
When the clock is not the divisors of 64 (e.x. 12 MHz), micros() returns an underestimated value. It's better to use clockCyclesToMicroseconds. ``` e.g. ((m
**Version**: Arduino IDE=1.8.0; Mac=10.10.5; MCU=Atmega32U4 **Issue**: Arduino Micro USB Serial is crashed if send more than 255 data once to Serial. when it is occurred , the USB register is:...
AVR-Doper is an STK500v2 compatible programmer. See https://www.obdev.at/products/vusb/avrdoper.html for details. It supports two modes of operation: CDC-mode and HID-mode. In the first mode, it provides a virtual serial port and...
In commit deea929 (Introduce non compulsory Wire timeout), some timeout-related functions were added. To allow writing portable sketches, it is important for those sketch to know whether they are using...
Currently if an invalid pin is passed to pinMode, it'll happily read beyond the ends of its arrays and corrupt a random piece of memory. This changes it so that...
It seems that a number of people expect the EEPROM `put` and `get` functions to work with C strings and `String` objects [[1](https://forum.arduino.cc/t/is-it-recommended-to-space-out-eeprom-addresses-when-there-are-multiple-data-variables/997200), [2](https://forum.arduino.cc/t/how-to-store-the-serial-received-string-to-eeprom/1028193)]. This patch implements that functionality. Example...
The issue with printNumber is that it uses a lot of stack quite unexpectedly. This makes it basically unusable on a attiny. I suggest doing the naive implementation as it's...
I am replacing multiple instances of bit operation macros in part with a single macro using the preexisting bit(b) macro. This may improve code readability and maintainability.