Hardware Reference
In-Depth Information
To disable the cursor again, use noCursor() :
lcd.noCursor();
These two functions do not take any parameters and do not return any data.
To display a blinking cursor, use blink() :
lcd.blink();
To hide the blinking cursor, use noBlink() .
lcd.noBlink();
Using cursor() or blink() may produce unexpected results; the exact results
depend on the screen's manufacturer. Consult your documentation.
Text Orientation
Text can be oriented both left to right and right to left. By default, LCD alpha-
numerical displays are coni gured to be left to right. On startup, the cursor is
placed at the far left, and each character makes the cursor move one step to the
right. To coni gure the LCD screen to be in right-to-left coni guration, use this
function:
lcd.rightToLeft();
This function takes no parameters and returns no data. To change the orien-
tation back to left to right, use the following function:
lcd.leftToRight();
Neither function affects previously written text, and the cursor's position is
not updated.
Scrolling
LCD displays are used on numerous devices; they are cheap and reliable. You
see them often on cash registers in supermarkets; an LCD device can tell you
what item the cashier has just scanned and the cost of the item. At the end, it
gives you the grand total to double-check with your calculations. Assuming that
you want to print the total and that you need room for two decimal places, a
decimal point, a dollar sign, and the remaining room for digits, then a standard
16 x 2 LCD device can be used for some expensive shopping. Sixteen characters
are more than enough to display prices but become far too small if you want
to place your company name or even some text. “Thanks for shopping with
us; have a nice day!” is far too large for a 16 x 2 LCD screen, even on two lines.
 
Search WWH ::




Custom Search