A small graphics library for practicing on embedded microcontrollers

Hello everyone, today I will share a small graphics library.

Tiny Graphics Library:

http://www.technoblogy.com/show?23OS

This small graphics library provides point, line and character drawing commands for the I2C 128x64 OLED display on the ATtiny85.

It supports RAM-limited processors by avoiding display buffers and can be used with I2C OLED displays based on the SH1106 driver chip.

picture

Since I2C requires only two I/O lines, the graphical display leaves three free lines on the ATtiny85 for your own application:

picture

Please note that this library only works with I2C displays with four pins. It does not work with SPI displays or displays based on the SSD1306 or SSD1309 driver chips, as these do not support reading back display memory.

Tiny TFT Graphics Library:

http://www.technoblogy.com/show?L6I

This is a graphics library for a series of small color TFT displays based on ST7735 and ST7789 driver chips .  

picture

   

picture

This library allows you to draw points, draw lines, draw filled rectangles and print text with selectable scale factors. Included in the project is a demo histogram drawing program that adapts itself to each supported monitor.

Unlike most other TFT display libraries, this library does not require a memory buffer, allowing it to run on any processor up to the ATtiny85. These displays are SPI and require four pins to drive the display, leaving one pin on the ATtiny85 to connect to another device, such as a temperature sensor. If you need more pins, choose a larger chip, such as the ATtiny84;    

The source code of the project can be found in the two links above. I won’t introduce it in detail here. If you are interested, you can take a look directly.

Guess you like

Origin blog.csdn.net/weixin_41114301/article/details/132915749