ATTiny85 128x64 OLED - Display an Image from Program Memory
Gadget Reboot
I quickly ran out of program space on the ATTiny85 when I wanted to use a 128x64 OLED plus do some floating point math on several ADC readings, but after some searching, I found I could cram it all in and still have some code space left.
Notes:
-the schematic had the pot wired with both ends to ground, fixed on github.
- using two fonts on the more bloated sketch didn’t significantly contribute to program space savings. When I used just the default font I only saved 1% of program space and could still only read one analog input.
Sketch & schematic: https://github.com/GadgetReboot/Digispark_OLED
Convert uploaded images to arduino arrays for OLED etc https://javl.github.io/image2cpp/
Arduino Libraries: ATTiny85 minimal OLED text/graphics https://github.com/kirknorthrop/SSD1306_minimal https://github.com/adafruit/TinyWireM
DigisparkOLED library https://github.com/digistump/DigistumpArduino/tree/master/digistump-avr/libraries/DigisparkOLED
Patreon: https://www.patreon.com/gadgetreboot Pinterest: https://www.pinterest.ca/GadgetReboot Twitter: @GadgetReboot https://twitter.com/gadgetreboot ... https://www.youtube.com/watch?v=_J_96iEm2-g
54151627 Bytes