Subversion Repositories group.electronics

Rev

Rev 53 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 53 Rev 54
Line 33... Line 33...
33
#define LCD_MODE_CM     0x00                    // Command line
33
#define LCD_MODE_CM     0x00                    // Command line
34
#define LCD_MODE_RS     0x01                    // Write line
34
#define LCD_MODE_RS     0x01                    // Write line
35
#define LCD_MODE_RW     0x02                    // Read line
35
#define LCD_MODE_RW     0x02                    // Read line
36
#define LCD_MODE_EN     0x04                    // Enable line
36
#define LCD_MODE_EN     0x04                    // Enable line
37
 
37
 
-
 
38
struct {
-
 
39
        uint8_t display;
-
 
40
        uint8_t function;
-
 
41
        uint8_t backlight;
-
 
42
} lcd;
-
 
43
 
38
void lcd_init(void);
44
void lcd_init(void);
39
 
45
 
40
void lcd_percent_graph(uint8_t, uint8_t, uint8_t);
46
void lcd_percent_graph(uint8_t, uint8_t, uint8_t);
41
 
47
 
42
uint8_t lcd_print_right(char*);
-
 
43
uint8_t lcd_print(char*);
48
uint8_t lcd_print(char*);
-
 
49
uint8_t lcd_print_right(char*);
44
void lcd_overprint(char * str, uint8_t len, uint8_t, uint8_t);
50
void lcd_overprint(char * str, uint8_t len, uint8_t, uint8_t);
-
 
51
void lcd_overprint_right(char *str, uint8_t len, uint8_t col, uint8_t row);
45
 
52
 
46
inline void lcd_clear();
53
inline void lcd_clear();
47
inline void lcd_home();
54
inline void lcd_home();
48
inline void lcd_backlight();
55
inline void lcd_backlight();
49
inline void lcd_noBacklight();
56
inline void lcd_noBacklight();