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

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 264 · Smart Sensors and Applications
Example Program: EepromPixelWorm.bs2
' -----[ Title ]--------------------------------------------------------------
' Smart Sensors and Applications - EepromPixelWorm.bs2
' Displays an animated pixel worm within a single LCD character
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ EEPROM Data ]--------------------------------------------------------
Char0
Char1
EepromPixelWorm.bs2 creates a pixel-worm, crawling through a character.
DO
LOOP
Examine the EEPROM character definitions and predict how the animation will
look when you run the program.
Open and run EepromPixelWorm.bs2.
Compare your expected results to the LCD display.
FOR charBase = Char0 TO Char14 STEP 8
NEXT
PAUSE 1000
Free Download! This program is available as a free .bs2 file download from the Smart
Sensors and Applications Product Page at www.parallax.com.
GOSUB Def_Cust_Char
cursor = 7
GOSUB Disp_Cust_Char
PAUSE 200 '- charBase
DATA
DATA
%11111,
%01111,
%11111,
%11111,
%11111,
%11111,
%11111,
%11111
%11111,
%00111,
' Target device = BASIC Stamp 2
' Language
' * * * * *
' 0 * * * *
' * * * * *
' * * * * *
' * * * * *
' * * * * *
' * * * * *
' * * * * *
' * * * * *
' 0 0 * * *
= PBASIC 2.5

Related parts for 122-28029