Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:software:homelab:library:module:lcd_graphic [2010/02/08 14:42] mikk.leinien:software:homelab:library:module:lcd_graphic [2020/07/20 12:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Graafiline LCD ======+====== Graphic LCD ======
  
-//Seotud mooduliga: [HW] [[en:hardware:homelab:lcd]]//+//Related to: [HW] [[en:hardware:homelab:digi]]//
  
-See teegi osa sisaldab kodulabori graafilise LCD kasutamise funktsiooneKuigi LCD on graafilinepuuduvad teegist hetkel siiski kujundite joonistamise funktsioonid.+This library contains functions to use the HomeLab graphical LCD. Although the LCD is capable of displaying graphical imagesno such functions are implemented in the library. The LCD is used as a 14 x 6 character alphanumeric display.
  
-===== Funktsioonid =====+===== Functions =====
  
-  * **//void lcd_gfx_init(void)//** \\ Ekraani tööks seadistamine.+  * **//void lcd_gfx_init(void)//** \\ 
 +    Intializes LCD.
  
-  * **//void lcd_gfx_backlight(bool set)//** \\ Ekraani taustvalgustuse lülitamineParameetrid+  * **//void lcd_gfx_backlight(bool set)//** \\ 
-    * //set// - Tõeväärtus taustvalgustuse töötamisest. //true// puhul taustvalgustus on sees, //false// puhul väljas.+    Switch LCD backlight on or offParameters
 +    * //set// - //true// when backlight on, //false// when off.
  
-  * **//void lcd_gfx_clear(void)//** \\ Kogu ekraani tühjendamine.+  * **//void lcd_gfx_clear(void)//** \\ 
 +    Clears a whole display.
  
-  * **//void lcd_gfx_clear_line(unsigned char line)//** \\ Ekraani ühe tekstirea kustutamineParameetrid+  * **//void lcd_gfx_clear_line(unsigned char line)//** \\ 
-    * //line// - Rea number 0 kuni 5.+    Clears a single text lineParameters
 +    * //line// - Line numberto 5.
  
-  * **//void lcd_gfx_goto_char_xy(unsigned char x, unsigned char y)//** - Märgi positsiooni valik teksti väljastamiseksParameetrid+  * **//void lcd_gfx_goto_char_xy(unsigned char x, unsigned char y)//** \\ 
-    * //x// - X koordinaatVäärtus kuni 13. +    Selects a position to write text toParameters
-    * //y// - Y koordinaatVäärtus kuni 5.+    * //x// - X coordinate. 0 to 13. 
 +    * //y// - Y coordinate. 0 to 5.
  
-  * **//void lcd_gfx_write_char(char c)//** \\ Sümboli kuvamine ekraanil eelnevalt määratud positsioonilParameetrid+  * **//void lcd_gfx_write_char(char c)//** \\ 
-    * //c// - ASCII sümbol.+    Writes a character to the pre-defined positionParameters
 +    * //c// - ASCII character.
  
-  * **//void lcd_gfx_write_string(char *s)//** \\ Teksti kuvamine ekraanil eelnevalt määratud positsioonist alatesParameetrid+  * **//void lcd_gfx_write_string(char *s)//** \\ 
-    * //s// - Teksti viit.+    Writes a string to the display starting from the pre-defined positionParameters
 +    * //s// - Pointer to string (char array).
  
-===== Näide =====+===== Example ===== 
 + 
 +Demonstration of using a graphical LCD.
  
 <code c> <code c>
Line 34: Line 43:
 int main(void) int main(void)
 { {
- // Ekraani seadistamine+ // LCD initialization.
  lcd_gfx_init();  lcd_gfx_init();
  
- // LCD ekraani puhastamine+ // Display clearing.
  lcd_gfx_clear();  lcd_gfx_clear();
  
- // Kursori (nähtamatu) ekraani keskele viimine+ // Cursor to the middle of the screen.
  lcd_gfx_goto_char_xy(5, 2);  lcd_gfx_goto_char_xy(5, 2);
  
- // Teksti kuvamine + // Displaying a text. 
- lcd_gfx_write_string("Tere");+ lcd_gfx_write_string("Hello");
 } }
 </code> </code>
en/software/homelab/library/module/lcd_graphic.1265632945.txt.gz · Last modified: (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0