Playing with a DigiSpark & SSD1306 0.96" OLED

Examples, screenshots, graphics, fonts...
Post Reply
User avatar
Phil_G
Posts: 310
Joined: 15 Feb 2018, 23:32
Contact:

Playing with a DigiSpark & SSD1306 0.96" OLED

Post by Phil_G » 09 Sep 2019, 23:16

I was just browsing stuff and happened across this:
https://www.instructables.com/id/ATTiny ... at-Things/
Its a simplified OLED library for the 0.96" OLEDs for the DigiSpark or any ATTiny85, minimalised to preserve memory on the ATTiny85. For text, it has only one font which is 5x7, so quite small to read but very clear, you get 20 characters by 8 lines, four lines if double spaced.



IMG_20190909_232200_619.JPG

IMG_20190909_232227_540.JPG

IMG_20190909_232258_935.JPG



Just thought it was a handy library worth saving, great for DigiSpark projects.







As with most of these libraries, theres no documentation so you have to work out how to use it. I've sussed the graphics format, basically its vertical bytes from top left, across left to right, next row, etc to bottom right, with the msb of each byte at the bottom. Taking the thermometer as an example


thermometer_graphic.jpg


(this took me ages to draw!):


thermometer.jpg

You can create a new graphic using PaintShop Pro or similar, actual size, two-colour, then import it into the excellent conversion utility that Max found the other day: http://javl.github.io/image2cpp/

Cheers
Phil

Post Reply