TinyCircuits Forum

TinyCircuits Products => Thumby => Topic started by: brian2 on September 29, 2021, 06:37:58 AM

Title: Thumby Display Controller, Arduino Examples
Post by: brian2 on September 29, 2021, 06:37:58 AM
Hi there.
Thanks for making this section available.
Can you tell me if the Thumby display uses a standard SSD1306 controller, e.g.:

https://www.smart-prototyping.com/0_42-inch-OLED-Bare-Display-72-40-SSD1306

Can you make some example Arduino IDE code available please? Is there a standard library for display writes/button reads?

(I've previously coded for Arduboy and am interested in porting a game with lower resolution).

Thanks,
Brian.
Title: Re: Thumby Display Controller, Arduino Examples
Post by: acedent on September 29, 2021, 07:29:00 AM
It seems it is 1306 based:
https://github.com/TinyCircuits/tinycircuits.github.io/blob/master/ThumbyGames/lib/ssd1306.py
Title: Re: Thumby Display Controller, Arduino Examples
Post by: brian2 on September 29, 2021, 02:24:03 PM
Thanks for the link acedent, good code to look through, lib/thumby.py  lists all the I/O pins used.  Seems like it uses I2C rather than SPI too, interesting.
Title: Re: Thumby Display Controller, Arduino Examples
Post by: Ben Rose on October 04, 2021, 06:50:55 PM
Meant to respond last week, sorry- yep, lib/thumby.py will get you most of what you need until we have things documented. Thumby works fine in the Arduino IDE equivalent to the Raspberry Pi Pico, so it should be pretty easy to adapt the Arduboy library functionality, aside from the tough part of adapting games to the lower resolution.

Thanks,
Ben