Tiny TFT Graphics Library 2

Color graphics library works with new ATtiny 0, 1, and 2- series microcontrollers as well as classic devices like the ATtiny85.

Jeremy Cook
2 years agoDisplays

Although one might argue that the bigger the display the better, in some instances – e.g. to show the time – a small display works quite well. While a mono screen can get the job done, using a color TFT display opens up a plethora of options. If you’d like to use such a color display with an appropriately small ATtiny microcontroller, David Johnson-Davis outlines how to do so with his new and improved Tiny TFT Graphics Library.

This new code is an update to his original Tiny TFT library that we covered in 2019. In addition to working with classic ATtiny microcontollers, this version adds support for the new 0, 1, and 2-series ATtiny devices, such as the ATtiny402. The original graphics functions, including plotting points, lines, and text are still available, but the latest library adds a few new tricks, such as the ability to draw circles. You can also plot a rather nice-looking 3-dimensional curve as shown on his featured image, powered in this case by the humble ATtiny85 microcontoller on a 2” 320x240 TFT.

The article goes over library usage in more detail, along with the hardware setup. It lists a variety of displays that are compatible with this library, and other units based on the ST7735. ST7789, or ILI9340/1 should work with a bit of experimentation.

Alternatively, if you’re using an SSD1306 LED, you can get some pretty impressive graphics out of it as well. Just turn to the AttinyStreamGfxApi library by Görg Pflug, featured here in April!

Jeremy Cook
Engineer, maker of random contraptions, love learning about tech. Write for various publications, including Hackster!
Latest articles
Sponsored articles
Related articles
Latest articles
Read more
Related articles