fremoclock  1_3A01
FREMO Clock - Software for UTG
lcd.h
Go to the documentation of this file.
1 
16 #ifndef LCD_H_
17 #define LCD_H_
18 
19 #include <stdint.h> // uint8_t
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
26 typedef enum {
27  LCD_DISP_OFF = 0x08,
28  LCD_DISP_ON = 0x0C,
33 
37 void lcd_clear(void);
38 
42 void lcd_puts(const char * s);
43 
47 void lcd_puts_P(const char * s);
48 
52 void lcd_goto(uint8_t x, uint8_t y);
53 
57 void lcd_clrxy(uint8_t x, uint8_t y, uint8_t count);
58 
62 void lcd_putc(char c);
63 
67 void lcd_word(uint16_t value, uint8_t width);
68 
74 void lcd_init(lcdDisplayMode_t dispAttr);
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif /* LCD_H_ */
display on, cursor off, blink char
Definition: lcd.h:29
display on, cursor on
Definition: lcd.h:30
void lcd_clrxy(uint8_t x, uint8_t y, uint8_t count)
Clear count characters starting at position (x,y).
Definition: lcd.c:222
display off
Definition: lcd.h:27
lcdDisplayMode_t
display on/off, cursor on/off, blinking char at cursor position
Definition: lcd.h:26
void lcd_puts_P(const char *s)
Write a string from progmem of chars to the LCD.
Definition: lcd.c:192
void lcd_clear(void)
Clear and home the LCD.
Definition: lcd.c:179
void lcd_putc(char c)
Write a character to the LCD.
Definition: lcd.c:204
void lcd_init(lcdDisplayMode_t dispAttr)
Initialize the LCD - call before anything else.
Definition: lcd.c:244
display on, cursor on, blink char
Definition: lcd.h:31
void lcd_word(uint16_t value, uint8_t width)
Write numeric value to the LCD.
Definition: lcd.c:232
void lcd_goto(uint8_t x, uint8_t y)
Go to the specified position.
Definition: lcd.c:210
void lcd_puts(const char *s)
Write a string of characters to the LCD.
Definition: lcd.c:186
display on, cursor off
Definition: lcd.h:28