ArduinoShrink icon indicating copy to clipboard operation
ArduinoShrink copied to clipboard

replaces Arduino AVR Core functions with smaller and faster versions

Results 7 ArduinoShrink issues
Sort by recently updated
recently updated
newest added

Hi! I am currently working on a project for the Arduino Mini, with an OLED display, RGB LEDs, and a HC-SR04 Ultrasonic sensor. I am currently troubleshooting the code on...

I use micro() function to timeout a do-while loop ``` // Originate timestamp t1 = micros(); // Wait till data is there or timeout... int cb = 0; do {...

Hello. It would be nice to have this library directly in PlatformIO Registry. How to do it is described here: https://docs.platformio.org/en/latest/librarymanager/creating.html#publishing What do you think? Have nice day.

enhancement

Bug first discovered in MicroCore, which uses the same code. https://github.com/MCUdude/MicroCore/issues/136

bug

Not very knowledgeable with the Sdfat library but have found an issue where my Arduino Nano will hang as soon as sd.begin is called when the ArduinoShrink library is called,...

The timer0 interrupt code maintains t0_fract, but the micros() function only counts milliseconds plus timer count values, leaving out that fractional milliseconds that have elapsed, and thus producing incorrect results....

FRACT_INC is an 8-bit binary fraction with a denominator of 250. https://github.com/nerdralph/ArduinoShrink/blob/master/src/millis.c#L35 Changing to 256 would slightly improve micros() precision, and simplify T0 overflow ISR, removing the need for FRACT_MAX.

enhancement