From 58b4e52f7f7340f50f56363575dd2b08d71eec0e Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 25 Jul 2009 18:26:29 +0000 Subject: Updating LiquidCrystal API and examples. --- libraries/LiquidCrystal/examples/Shift/Shift.pde | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libraries/LiquidCrystal/examples/Shift/Shift.pde') 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') { -- cgit v1.2.3-18-g5258