Playing with a DigiSpark & SSD1306 0.96" OLED
Posted: 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.
Connections to the display are +5, 0v, SDA (DigiSpark P0) and SCL (DigiSpark P2)
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
(this took me ages to draw!):
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
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.
Connections to the display are +5, 0v, SDA (DigiSpark P0) and SCL (DigiSpark P2)
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
(this took me ages to draw!):
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