122-28029 Parallax Inc, 122-28029 Datasheet - Page 108

GUIDE STUDENT SMART SENSORS

122-28029

Manufacturer Part Number
122-28029
Description
GUIDE STUDENT SMART SENSORS
Manufacturer
Parallax Inc
Datasheet

Specifications of 122-28029

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Smart Sensors
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Page 96 · Smart Sensors and Applications
flicker that results is not pleasant to examine for any length of time.
right of the cursor on a given line. While it still causes a little bit of flicker in each value,
you'll likely agree that it's much easier to look at than the
Your Turn - LCD Display
The
custom character. Here is an initialization command for the LCD that does three things:
(1) start the LCD, (2) display text that doesn't change, and (3) defines Custom Character
7 as the degree symbol " ° ."
DEBUG
Save VertWheelRotation.bs2 as VertWheelDisplayTest.bs2.
Replace
Change
improvement in the display?
Remove the
rotate the board. Extra digits will appear at the end of non-negative values.
Put the
pesky extra digits that didn’t disappear before should be gone.
' Initialize LCD
PAUSE 200
SEROUT 14, 84, [22, 12]
PAUSE 5
SEROUT 14, 84, [ 130, "angle = ", DEC angle, 7,
SEROUT 14, 84, [255,
DEBUG HOME, CLREOL, SDEC ? x,
command has three lines of display, and the degree symbol will need a
CLREOL
HOME
CLS
CLREOL
with
back to
CLREOL, SDEC ? y,
"angle = ", DEC3 angle,
176
control characters back in and run the program again. Those
%01000,
%10100,
%01000,
%00000,
%00000,
%00000,
%00000,
%00000]
150, "x=", SDEC x,
157, "y=", SDEC y ]
CLS
control characters and note the effect on the display as you
in the
HOME
DEBUG
and run the program again.
command and run the program.
' Define Custom Character 7
'
' *
'
'
'
'
'
'
' ASCII 176 is degree symbol
*
*
CLS
*
version.
CLREOL
Do you see an
erases to the

Related parts for 122-28029