122-28029 Parallax Inc, 122-28029 Datasheet - Page 40
122-28029
Manufacturer Part Number
122-28029
Description
GUIDE STUDENT SMART SENSORS
Manufacturer
Parallax Inc
Datasheet
1.122-28029.pdf
(340 pages)
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
- Current page: 40 of 340
- Download datasheet (5Mb)
Page 28 · Smart Sensors and Applications
Example Program - TestScrollingSubroutine.bs2
' -----[ Title ]--------------------------------------------------------------
' Smart Sensors and Applications - TestScrollingSubroutine.bs2
' Scroll a text message across a four character wide window in the LCD.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ DATA Directives ]----------------------------------------------------
Message1
Message2
Message3
Message4
' -----[ I/O Definitions ]----------------------------------------------------
LcdPin
' -----[ Constants ]----------------------------------------------------------
T9600
LcdCls
LcdCr
LcdOff
LcdOn
Line0
Line1
TimeOn
TimeOff
' -----[ Variables ]----------------------------------------------------------
' Functional variables for Scroll_Message subroutine.
cursorStart
head
tail
pointer
character
√
√
√
Review the code blocks in the Main Routine of the program and predict how
wide the scrolling window will be, what text will be displayed, and how many
characters at a time the message will shift.
Enter, save, and run TestScrollingSubroutine.bs2.
Compare your predictions to what actually occurred and reconcile any
differences.
DATA @ 2, "Message "
DATA
DATA
DATA
PIN
CON
CON
CON
CON
CON
CON
CON
CON
CON
VAR
VAR
VAR
VAR
VAR
"again"
"Larger message, going faster..."
14
84
12
13
21
22
128
148
250
0
Byte
Byte
Byte
Byte
Byte
' BASIC Stamp Directive
' PBASIC Directive
' LCD I/O pin
' True, 8-bits, no parity, 9600
' Form feed -> clear screen
' Carriage return
' Turns display off
' Turns display on
' Line 0, character 0
' Line 1, character 0
' Character on time
' Character fade time
' First character location
' Start of displayed text
' End of displayed text
' EEPROM address pointer
' Stores a character
Related parts for 122-28029
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
MANUAL FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
GUIDE STUDENT PROCESS CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
MANUAL PROPELLER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
LEAD WIRES FLYING CABLE III/IV
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
BOARD ADAPTER AND FLY LEADS
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
PLATFORM CABLE USB II
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
KIT STARTER COOLRUNNER-II BUNDLE
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: