de:examples:display:lcd_graphic
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| de:examples:display:lcd_graphic [2010/11/24 12:09] – Wember | de:examples:display:lcd_graphic [2020/07/20 12:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Graphisches LCD ====== | ====== Graphisches LCD ====== | ||
| - | //Necessary knowledge: [HW] [[en: | + | //Notwendiges Wissen: [HW] [[en: |
| ===== Theorie ===== | ===== Theorie ===== | ||
| - | Das graphische LCD //liquid crystal display// ist ein Display | + | Das graphische LCD //liquid crystal display// ist ein Display |
| - | [{{ : | + | [{{ : |
| - | Monochrome graphische Displays haben normalerweise eine passive Matrix, große Farbdisplays | + | Monochrome graphische Displays haben normalerweise eine passive Matrix, große Farbdisplays |
| - | Ähnlich zum alphanumerischen Displays, hat das graphische Display | + | |
| ===== Übung ===== | ===== Übung ===== | ||
| - | Im HomeLab | + | Das HomeLab |
| - | Die Funktionen für das graphische LCD sind ähnlich zu denen des alphanumerischen LCD. Zuerst muss der Bildschirm mit der Funktion // lcd_gfx_init// | + | Die Funktionen für das graphische LCD sind ähnlich zu denen des alphanumerischen LCD. Zuerst muss der Bildschirm mit der Funktion // |
| - | Es gibt eine Buchstaben | + | |
| - | Das folgende | + | Nachfolgend |
| <code c> | <code c> | ||
| // | // | ||
| - | // Example of using the graphic | + | // Beispiel für die Nutzung des graphischen |
| - | // Time of day is displayed on LCD since the beginning of the program. | + | // Die Tageszeit wird ab Beginn des Programms auf dem LCD angezeigt. |
| // | // | ||
| #include < | #include < | ||
| Line 32: | Line 30: | ||
| // | // | ||
| - | // Main program. | + | // Hauptprogramm. |
| // | // | ||
| int main(void) | int main(void) | ||
| Line 39: | Line 37: | ||
| char text[16]; | char text[16]; | ||
| - | // Set-up of the LCD. | + | // Einrichten des LCD. |
| lcd_gfx_init(); | lcd_gfx_init(); | ||
| - | // Cleaning the screen. | + | // Löschen des Displays. |
| lcd_gfx_clear(); | lcd_gfx_clear(); | ||
| - | // Switching on the background light. | + | // Einschalten der Hintergrundbeleuchtung. |
| lcd_gfx_backlight(true); | lcd_gfx_backlight(true); | ||
| - | // Displaying the name of the program. | + | // Anzeige des Programmnamens. |
| lcd_gfx_goto_char_xy(1, | lcd_gfx_goto_char_xy(1, | ||
| lcd_gfx_write_string(" | lcd_gfx_write_string(" | ||
| - | // Endless loop. | + | // Endlosschleife. |
| while (true) | while (true) | ||
| { | { | ||
| - | // Converting the seconds to the form of clock. | + | // Sekunden in die Form der Uhrzeit konvertieren. |
| // hh:mm:ss | // hh:mm:ss | ||
| sprintf(text, | sprintf(text, | ||
| Line 62: | Line 60: | ||
| | | ||
| - | // Displaying the clock text. | + | // Anzeige des Zeittextes. |
| lcd_gfx_goto_char_xy(3, | lcd_gfx_goto_char_xy(3, | ||
| lcd_gfx_write_string(text); | lcd_gfx_write_string(text); | ||
| - | // Adding one second. | + | // Eine Sekunde hinzufügen. |
| seconds++; | seconds++; | ||
| - | // Hardware delay for 1000 ms. | + | // Hardwareverzögerung von 1000 ms. |
| hw_delay_ms(1000); | hw_delay_ms(1000); | ||
| } | } | ||
de/examples/display/lcd_graphic.1290593383.txt.gz · Last modified: (external edit)
