1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-18 17:42:23 +03:00

Updating LiquidCrystal API and examples.

This commit is contained in:
David A. Mellis
2009-07-25 18:26:29 +00:00
parent b72521d35b
commit 97706deda0
7 changed files with 34 additions and 30 deletions

View File

@@ -219,25 +219,25 @@ void LiquidCrystal::scrollDisplayRight(void) {
}
// This is for text that flows Left to Right
void LiquidCrystal::shiftLeft(void) {
void LiquidCrystal::leftToRight(void) {
_displaymode |= LCD_ENTRYLEFT;
command(LCD_ENTRYMODESET | _displaymode);
}
// This is for text that flows Right to Left
void LiquidCrystal::shiftRight(void) {
void LiquidCrystal::rightToLeft(void) {
_displaymode &= ~LCD_ENTRYLEFT;
command(LCD_ENTRYMODESET | _displaymode);
}
// This will 'right justify' text from the cursor
void LiquidCrystal::shiftIncrement(void) {
void LiquidCrystal::autoscroll(void) {
_displaymode |= LCD_ENTRYSHIFTINCREMENT;
command(LCD_ENTRYMODESET | _displaymode);
}
// This will 'left justify' text from the cursor
void LiquidCrystal::shiftDecrement(void) {
void LiquidCrystal::noAutoscroll(void) {
_displaymode &= ~LCD_ENTRYSHIFTINCREMENT;
command(LCD_ENTRYMODESET | _displaymode);
}