Speicheroptimierung Library zur Ansteuerung eines ST7735 SPI Displays

OP #3348342
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
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?
OP #3463119
Harrie, unfortunately I am not really into Arduino. But It should be 
fairly easy to port my changes back. Just start with the original 
Adafruit Arduino lib and work your way down from there. The function 
names are still the same.
Gast #4613559
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
Gast #5054386
Hallo zusammen,

kennt jemand eine aktuelle Bezugsquelle der kompletten Library?
Leider ist die Website von Tobias Weis nicht mehr verfügbar.

Gruß
Martin
Gast #5054466
Suchen kann ich schon nur ist die lib in cpp geschrieben für die Arduino 
Software.

Ich war auf der Suche nach der reinen C Variante. Da komme ich wohl 
nicht drum herum die lib selbst anzupassen...

Antwort schreiben

Eine eigene Frage? Dieser Thread ist über 13 Jahre alt. Stell sie in einem eigenen Thread – dort lesen mehr Leute mit, und sie wird öfter und schneller beantwortet.

Neuen Thread starten

Eine Lösung, Ergänzung oder Rückmeldung zu diesem Thread? Dann antworte hier.

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.