aboutsummaryrefslogtreecommitdiff
path: root/libraries/LiquidCrystal/examples/Shift/Shift.pde
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2009-07-25 18:26:29 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2009-07-25 18:26:29 +0000
commit58b4e52f7f7340f50f56363575dd2b08d71eec0e (patch)
tree93ff67618e28af462666b56c36266fba53111092 /libraries/LiquidCrystal/examples/Shift/Shift.pde
parentf504460fc47cbd8d0e127e410263558912259f64 (diff)
Updating LiquidCrystal API and examples.
Diffstat (limited to 'libraries/LiquidCrystal/examples/Shift/Shift.pde')
-rw-r--r--libraries/LiquidCrystal/examples/Shift/Shift.pde8
1 files changed, 4 insertions, 4 deletions
diff --git a/libraries/LiquidCrystal/examples/Shift/Shift.pde b/libraries/LiquidCrystal/examples/Shift/Shift.pde
index 0326c51..3e88020 100644
--- a/libraries/LiquidCrystal/examples/Shift/Shift.pde
+++ b/libraries/LiquidCrystal/examples/Shift/Shift.pde
@@ -1,12 +1,12 @@
/*
- LiquidCrystal Library - Shift
+ LiquidCrystal Library - TextDirection
Demonstrates the use a 16x2 LCD display. The LiquidCrystal
library works with all LCD displays that are compatible with the
Hitachi HD44780 driver. There are many of them out there, and you
can usually tell them by the 16-pin interface.
- This sketch demonstrates how to use shiftLeft() and shiftRight()
+ This sketch demonstrates how to use leftToRight() and rightToLeft()
to move the cursor.
The circuit:
@@ -51,12 +51,12 @@ void loop() {
// reverse directions at 'm':
if (thisChar == 'm') {
// go right for the next letter
- lcd.shiftRight();
+ lcd.rightToLeft();
}
// reverse again at 's':
if (thisChar == 's') {
// go left for the next letter
- lcd.shiftLeft();
+ lcd.leftToRight();
}
// reset at 'z':
if (thisChar > 'z') {