28029 Parallax Inc, 28029 Datasheet - Page 36

KIT PARTS SMART SENSORS W/TEXT

28029

Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet

Specifications of 28029

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® or Javelin Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
28029PAR
Figure 1-17: Custom Characters for Animated Hourglass
Page 24 · Smart Sensors and Applications
SEROUT 14, 84, [22, 12]
PAUSE 5
' -----[ Main Routine ]-------------------------------------------------------
DO
LOOP
Your Turn
Figure 1-17 shows the custom characters depicting the grains of sand in the hourglass
moving from the top to the bottom.
Here is a Main Routine you can also try for animating the eight custom characters once
you have updated the Initialization section:
DO
SEROUT 14, 84, [133]
SEROUT 14, 84, [0]
PAUSE
SEROUT 14, 84, [8]
SEROUT 14, 84, [7]
PAUSE 1500
' Place cursor at character 5, and display Custom Character 0.
SEROUT 14, 84, 100, [133, 0]
PAUSE 750
Save Hourglass.bs2 as HourGlassYourTurn.bs2.
Expand the Initialization routine so that it defines all eight custom characters as
shown in Figure 1-17.
Modify the Main Routine so that it gives an animated hourglass effect as the
grains of sand fall from top to bottom.
1250
' Turn on display and clear
' 5 ms delay for clearing display
' Cursor -> Line 0, char
' Display Custom Character 0
' Delay for 1.25 seconds
' Backspace
' Display Custom Character 7
' Delay for 1.50 seconds
' 0.750 second delay

Related parts for 28029