29 #define LCD_CLEARDISPLAY 0x01
30 #define LCD_RETURNHOME 0x02
31 #define LCD_ENTRYMODESET 0x04
32 #define LCD_DISPLAYCONTROL 0x08
33 #define LCD_CURSORSHIFT 0x10
34 #define LCD_FUNCTIONSET 0x20
35 #define LCD_SETCGRAMADDR 0x40
36 #define LCD_SETDDRAMADDR 0x80
39 #define LCD_ENTRYRIGHT 0x00
40 #define LCD_ENTRYLEFT 0x02
41 #define LCD_ENTRYSHIFTINCREMENT 0x01
42 #define LCD_ENTRYSHIFTDECREMENT 0x00
45 #define LCD_DISPLAYON 0x04
46 #define LCD_DISPLAYOFF 0x00
47 #define LCD_CURSORON 0x02
48 #define LCD_CURSOROFF 0x00
49 #define LCD_BLINKON 0x01
50 #define LCD_BLINKOFF 0x00
53 #define LCD_DISPLAYMOVE 0x08
54 #define LCD_CURSORMOVE 0x00
55 #define LCD_MOVERIGHT 0x04
56 #define LCD_MOVELEFT 0x00
59 #define LCD_8BITMODE 0x10
60 #define LCD_4BITMODE 0x00
61 #define LCD_2LINE 0x08
62 #define LCD_1LINE 0x00
63 #define LCD_5x10DOTS 0x04
64 #define LCD_5x8DOTS 0x00
90 virtual void write(uint8_t);
94 void sendbyte(uint8_t val);
95 uint8_t _displayfunction;
96 uint8_t _displaycontrol;
99 uint8_t _numlines, _currline;