Rev 45 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#ifndef lcd_h#define lcd_h#define LCD_ADDR 0x27#define LCD_CLEARDISPLAY 0x01#define LCD_RETURNHOME 0x02#define LCD_DISPLAYCONTROL 0x08#define LCD_FUNCTIONSET 0x20#define LCD_DISPLAYON 0x04#define LCD_DISPLAYOFF 0x00#define LCD_CURSORON 0x02#define LCD_CURSOROFF 0x00#define LCD_BLINKON 0x01#define LCD_BLINKOFF 0x00#define LCD_4BITMODE 0x10#define LCD_2LINE 0x08#define LCD_5x8DOTS 0x00#define LCD_MODE_CM 0x00 // Command line#define LCD_MODE_RS 0x01 // Write line#define LCD_MODE_RW 0x02 // Read line#define LCD_MODE_EN 0x04 // Enable linevoid lcd_init(void);void lcd_command(uint8_t);void lcd_char(uint8_t data);void lcd_send(uint8_t, uint8_t);void lcd_sendNib(uint8_t);void lcd_write(uint8_t);void lcd_pulse(uint8_t);#endif