28 #define LCD_CLEARDISPLAY 0x01
29 #define LCD_RETURNHOME 0x02
30 #define LCD_ENTRYMODESET 0x04
31 #define LCD_DISPLAYCONTROL 0x08
32 #define LCD_CURSORSHIFT 0x10
33 #define LCD_FUNCTIONSET 0x20
34 #define LCD_SETCGRAMADDR 0x40
35 #define LCD_SETDDRAMADDR 0x80
38 #define LCD_ENTRYRIGHT 0x00
39 #define LCD_ENTRYLEFT 0x02
40 #define LCD_ENTRYSHIFTINCREMENT 0x01
41 #define LCD_ENTRYSHIFTDECREMENT 0x00
44 #define LCD_DISPLAYON 0x04
45 #define LCD_DISPLAYOFF 0x00
46 #define LCD_CURSORON 0x02
47 #define LCD_CURSOROFF 0x00
48 #define LCD_BLINKON 0x01
49 #define LCD_BLINKOFF 0x00
52 #define LCD_DISPLAYMOVE 0x08
53 #define LCD_CURSORMOVE 0x00
54 #define LCD_MOVERIGHT 0x04
55 #define LCD_MOVELEFT 0x00
58 #define LCD_8BITMODE 0x10
59 #define LCD_4BITMODE 0x00
60 #define LCD_2LINE 0x08
61 #define LCD_1LINE 0x00
62 #define LCD_5x10DOTS 0x04
63 #define LCD_5x8DOTS 0x00
90 #if defined(ARDUINO) && ARDUINO >=100
91 size_t write(uint8_t);
98 void sendbyte(uint8_t val);
99 uint8_t _displayfunction;
100 uint8_t _displaycontrol;
101 uint8_t _displaymode;
102 uint8_t _initialized;
103 uint8_t _numlines, _currline;
void createChar(uint8_t, uint8_t[])
void setCursor(uint8_t, uint8_t)
void begin(uint8_t cols, uint8_t rows, uint8_t charsize=LCD_5x8DOTS)
void scrollDisplayRight()