Ich habe eine ANSI-C Library zur Ansteuerung von ST7735 Display entwickelt, welche nur einen sehr geringen Speicherbedarf hat. Dadurch kann sie auch auf ATtiny85 u.Ä. eingesetzt werden. Die aktuelle Version gibt es hier: https://github.com/cpldcpu/uTFT-ST7735
1 | uTFT-ST7735 |
2 | |
3 | This is a size and speed optimized ANSI-C library to control 1.8" ST7735 |
4 | TFTs. This library is based on the "china_lcd" library by Tobias Weis, |
5 | which is in turn based on the Adafruit ST7735 Arduino Library. Compared |
6 | to the original, the memory requirement has been drastically reduced and |
7 | the speed has been improved. Allowing it to be used on smaller devices |
8 | such as the ATtiny85. It includes a speed-optimzed software-SPI |
9 | implementation that is more than twice as fast as the original implementation. |
10 | |
11 | The library works with my display, which may be a "red" flag one. |
12 | Modifications are possibly required for other versions. |
13 | |
14 | Modifications to the original library |
15 | ------------------------------------- |
16 | |
17 | * Removal of all circle functions. |
18 | * Only text size 1 is available. |
19 | * Only ASCII characters 32-128 are available. These are sufficient for normal english text and data display. |
20 | * Removal of bitmap functions. These can be easily implemented in the user program. |
21 | * Added speed optimized software SPI. |
22 | * Colour conversion is now done by macro. |
23 | * Reordered and speed optimized text printing function. |
24 | * Minor size optimizations to all functions. |
25 | |
26 | The example compiles to only 2842 bytes, leaving ample space for additional functionality on the ATtiny85. |