Speicheroptimierung Library zur Ansteuerung eines ST7735 SPI Displays

OP #3348342
Lesenswert?
• ▲
▼
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.
Angehängte Dateien:
Gast #3460402
Lesenswert?
• ▲
▼
I love the approach to get a smaller memory usage, but....
I'm using Arduino. I tried to convert the files to an Arduino variant, 
but wasn't succesfull. Could you make a Arduino library for this, 
please?
Gast #4613559
Lesenswert?
• ▲
▼
Hallo,

ist es irgendwie möglich, bei der oben genannten Bibliothek  die 
Ausrichtung des Display zu ändern? Im Moment zeigt es die Schrift 
Horizontal an, ich hätte es aber gerne Vertikal, habe schon etwas 
probiert, allerdings zeigt es die Schrift jetzt untereinander an und 
nicht Vertikal Grade

Gruß, echo

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.