92 if ((dotsize != 0) && (lines == 1)) {
97 delayMicroseconds(50000);
107 delayMicroseconds(4500);
111 delayMicroseconds(4500);
115 delayMicroseconds(150);
122 delayMicroseconds(4500);
126 delayMicroseconds(150);
155 delayMicroseconds(2000);
164 delayMicroseconds(2000);
178 int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 };
331 for (
int i=0; i<8; i++) {
370 int EN_SWITCH = B00000010;
371 int RS_SWITCH = B00000001;
379 data = value<<4 & B11110000;
384 delayMicroseconds(1);
390 delayMicroseconds(1);
397 delayMicroseconds(100);
407 int EN_SWITCH = B00000010;
408 int RS_SWITCH = B00000001;
428 delayMicroseconds (1);
436 delayMicroseconds (100);
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.
AlphaLCD, allows the LCD to be operated via a shift register.
#define LCD_ENTRYSHIFTDECREMENT
void init(uint8_t dp, uint8_t cp, uint8_t lp)
Hardware initialization.
#define LCD_ENTRYSHIFTINCREMENT
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.
#define LCD_DISPLAYCONTROL
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)