<< Gesamtübersicht | << Klassenübersicht | Details der Klasse | Funktionsbeschreibungen |
Templateklasse für ein Farb-Grafik-LCD 3.2 Zoll [Mehr ...]
Basisklassen(n) | abgeleitete Klassen | |||||
---|---|---|---|---|---|---|
|
Lcd_SSD1289 |
|
Name | Parameter | Rückgabewert | Beschreibung |
---|---|---|---|
clearScreen | void | Löscht den Bildschirm mit der backgroundColor | |
drawBitmap | dim_t x, dim_t y, const BitmapHeader* pBitmap, uint8_t frameNr=0 |
void | Zeichnet ein Bitmap an festgelegter Position. |
drawChar | dim_t x, dim_t y, unsigned char c, dim_t maxWidth=LcdMaxX, bool onlyCalculate=false |
dim_t | Stellt in Zeichen dar |
drawCircle | dim_t x, dim_t y, dim_t radius |
void | Zeichnet einen Kreis |
drawHorLine | dim_t x, dim_t y, dim_t length |
void | Zeichnet eine Horizontale Line |
drawIcon | dim_t x, dim_t y, IconHeader* icon |
void | Zeichnet ein Icon |
drawLine | dim_t x1, dim_t y1, dim_t x2, dim_t y2 |
void | Zeichnet eine Linie |
drawMovedShape | Shape& shape | void | |
drawPixel | dim_t x, dim_t y | void | Zeichnet ein einzelnes Pixel |
drawVertLine | dim_t x, dim_t y, dim_t length |
void | Zeichnet eine vertikale Line |
enshureMaxDimension | Rect& rect | void | Stellt sicher, dass ein Rechteck ( Rec Objekt ) die maximale Breite und Höhe des Displays nicht überschreitet |
fillRect | const Rect& rect | void | Zeichnet ein ausgefülltes Rechteck |
fillRectGradient | const Rect& rect, color_t colorFrom, color_t colorTo, uint8_t direction='v' |
void |
Name | Parameter | Rückgabewert | Beschreibung |
---|---|---|---|
onPower | void | ||
onStart | void |
Templateklasse für ein Farb-Grafik-LCD 3.2 Zoll
- Controller SSD1289
- LCD-Modul 240374PQ TFT LCD Display
- Schreiben mit Low-Impuls an WR
- Data RS=high, Control RS=low
Defines:
PixelLongSide
PixelShortSide
LcdMaxX
LcdMaxY
clearScreen() void |
![]() ![]() |
Löscht den Bildschirm mit der backgroundColor
drawBitmap(dim_t x, dim_t y, const BitmapHeader* pBitmap, uint8_t frameNr=0) void |
![]() ![]() |
Zeichnet ein Bitmap an festgelegter Position.
Das Bitmap muss auf den Bildschirm passen.
drawChar(dim_t x, dim_t y, unsigned char c, dim_t maxWidth=LcdMaxX, bool onlyCalculate=false) dim_t |
![]() ![]() |
Stellt in Zeichen dar
gDisplay->drawChar(10, 10, 'c' )
x,y | Koordinate der oberen linken Ecke |
c | Ascii des Zeichens |
onlyCalculate | wenn true wird nur die Zeichenbreite berechnet |
drawCircle(dim_t x, dim_t y, dim_t radius) void |
![]() ![]() |
Zeichnet einen Kreis
gDisplay->drawCircle( 10, 10, 100 );
x | Abstand zum linken Rand des Lcd-Displays |
y | Abstand zum oberen Rand des Lcd-Displays |
radius | Radius des Kreises |
drawHorLine(dim_t x, dim_t y, dim_t length) void |
![]() ![]() |
Zeichnet eine Horizontale Line
gDisplay->drawHorLine(10, 10, 100);
x | Abstand zum linken Rand des Lcd-Displays |
y | Abstand zum oberen Rand des Lcd-Displays |
length | Länge der Linie |
drawIcon(dim_t x, dim_t y, IconHeader* icon) void |
![]() ![]() |
Zeichnet ein Icon
gDisplay->drawIcon( 10, 10, icon );
x | Abstand zum linken Rand des Lcd-Displays |
y | Abstand zum oberen Rand des Lcd-Displays |
icon | das zu zeichnende Icon |
drawLine(dim_t x1, dim_t y1, dim_t x2, dim_t y2) void |
![]() ![]() |
Zeichnet eine Linie
gDisplays->drawLine(10, 10, 20, 20);
x1 | Abstand des Startpunktes zum linken Rand des Lcd-Displays |
y1 | Abstand des Startpunktes zum oberen Rand des Lcd-Displays |
x1 | Abstand des Endpunktes zum linken Rand des Lcd-Displays |
y1 | Abstand des Endpunktes zum oberen Rand des Lcd-Displays |
drawMovedShape(Shape& shape) void |
![]() ![]() |
drawPixel(dim_t x, dim_t y) void |
![]() ![]() |
Zeichnet ein einzelnes Pixel
gDisplay->drawPixel( 10,10 );
x,y | Koordinaten des Pixels |
drawVertLine(dim_t x, dim_t y, dim_t length) void |
![]() ![]() |
Zeichnet eine vertikale Line
gDisplay->drawVertLine(10, 10, 100);
x | Abstand zum linken Rand des Lcd-Displays |
y | Abstand zum oberen Rand des Lcd-Displays |
length | Länge der Linie |
enshureMaxDimension(Rect& rect) void |
![]() ![]() |
Stellt sicher, dass ein Rechteck ( Rec Objekt ) die maximale Breite und Höhe des Displays nicht überschreitet
Gegebenenfalls werden die Rechteckgröße und -position angepasst
Rect r( x-10, y-10, 20, 20 );
enshureMaxDimension( r );
rect | das zu überprügfende Rechteck |
fillRect(const Rect& rect) void |
![]() ![]() |
Zeichnet ein ausgefülltes Rechteck
rect r( 10, 10, 20, 20 );
gDisplay->fillRect( r );
rect | Abmaße des Rechtecks als Rect-Objekt |
fillRectGradient(const Rect& rect, color_t colorFrom, color_t colorTo, uint8_t direction='v') void |
![]() ![]() |
onPower() void |
![]() ![]() |
onStart() void |
![]() ![]() |
<< Gesamtübersicht | << Klassenübersicht | Details der Klasse | Funktionsbeschreibungen |