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
37 #define LCD_ENTRYRIGHT 0x00
38 #define LCD_ENTRYLEFT 0x02
39 #define LCD_ENTRYSHIFTINCREMENT 0x01
40 #define LCD_ENTRYSHIFTDECREMENT 0x00
42 #define LCD_DISPLAYON 0x04
43 #define LCD_DISPLAYOFF 0x00
44 #define LCD_CURSORON 0x02
45 #define LCD_CURSOROFF 0x00
46 #define LCD_BLINKON 0x01
47 #define LCD_BLINKOFF 0x00
49 #define LCD_DISPLAYMOVE 0x08
50 #define LCD_CURSORMOVE 0x00
51 #define LCD_MOVERIGHT 0x04
52 #define LCD_MOVELEFT 0x00
54 #define LCD_8BITMODE 0x10
55 #define LCD_4BITMODE 0x00
56 #define LCD_2LINE 0x08
57 #define LCD_1LINE 0x00
58 #define LCD_5x10DOTS 0x04
59 #define LCD_5x8DOTS 0x00
61 #define LCD_RS_PIN 0x01
62 #define LCD_EN_PIN 0x02
63 #define LCD_BL_PIN 0x04
70 AlphaLCD(uint8_t dp, uint8_t cp, uint8_t lp);
72 void init(uint8_t dp, uint8_t cp, uint8_t lp);
98 virtual size_t write(uint8_t);
101 void send(uint8_t, uint8_t);
void noAutoscroll()
Disable the automatic horizontal scrolling of the text.
void noCursor()
Turn off the underline cursor.
void isDisplay(bool set)
Helper method to set on/off the display.
void createChar(uint8_t, uint8_t[])
Create one of the 8 CGRAM memory locations from 0x00 to 0x07 with a user defined characters.
void leftToRight()
Flow the text from left to right.
void noDisplay()
Turn off the display.
void cursor()
Turn on the underline cursor.
void command(uint8_t)
Helper method to send commands to the device.
void blink()
Turn off the blinking cursor.
void write4bits(uint8_t, uint8_t)
Write the character on the device, 4 bits mode.
void send(uint8_t, uint8_t)
Write either command or data, with automatic 4/8-bit selection.
void isAutoscroll(bool set)
Helper method to set on/off autoscroll.
void begin(uint8_t cols, uint8_t rows, uint8_t charsize=0x00)
Start the LCD modes and initializes the software configuration parameters.
void write8bits(uint8_t, uint8_t)
Write the character on the device, 8 bits mode.
void isRightToLeft(bool set)
Helper method to set on/off the right-to-left writing direction.
void scrollDisplayRight()
Scroll the display to the right by one position.
void scrollDisplayLeft()
Scroll the display to the left by one position.
void isCursor(bool set)
Helper method to set on/off the cursor visibility.
void autoscroll()
Enable the automatic horizontal scrolling of the text.
void display()
Turn on the display.
void isBlinking(bool set)
Helper method to set on/off the blinking cursor.
void home()
Set the cursor to the position (0,0)
void noBlink()
Turn off the blinking cursor.
void init(uint8_t dp, uint8_t cp, uint8_t lp)
Hardware initialization.
void setCursor(uint8_t, uint8_t)
Set the cursor to the requested position.
virtual size_t write(uint8_t)
Helper method to send data to the device.
void rightToLeft()
Flow the text from right to left.
AlphaLCD()
Constructor with no parameters, to create initial class instances.
void clear()
Clear the display content and set the cursor to the position (0,0)