130-28029 Parallax Inc, 130-28029 Datasheet - Page 210
130-28029
Manufacturer Part Number
130-28029
Description
KIT PARTS SMART SENSORS
Manufacturer
Parallax Inc
Datasheet
1.122-28029.pdf
(340 pages)
Specifications of 130-28029
Accessory Type
Education Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 210 of 340
- Download datasheet (5Mb)
Page 198 · Smart Sensors and Applications
Try the game first, and then we’ll take a closer look at how it works.
Example Program – TiltObstacleGame.bs2
' -----[ Title ]--------------------------------------------------------------
' Smart Sensors and Applications - TiltObstacleGame.bs2
' Tilt accelerometer to guide cursor through maze, collect $ in Debug Terminal
'{$STAMP BS2}
'{$PBASIC 2.5}
' -----[ EEPROM Data ]--------------------------------------------------------
' Store background to EEPROM
Maze DATA @0, HOME,
"#####################", CR,
"######
"##
"#
"#$
"#####
"#
"# $
"#
"#
"#####################", CR
YouLose DATA @243, HOME,
"#####################", CR,
"#####################", CR,
"###
"###
"#####################", CR,
"########## ##########", CR,
√
√
√
###########
##$##
########### #
##
Open (or enter) and save TiltObstacleGame.bs2.
Before you run the program, make sure your board is level. Also, make sure you
are holding it the same way you did in Activity 3, with the breadboard closest to
you, and the serial cable furthest away.
If you want to refresh the “$” characters, click your BASIC Stamp Editor’s Run
button. If you want to just practice navigating and not worry about points, press
and release the Reset button on your board.
#
#
#######
#######
###
Free Download! This program is available as a free .bs2 file download from the Smart
Sensors and Applications Product Page at www.parallax.com.
$
########
$ #####WIN", CR,
##
########", CR,
$
####", CR,
#
####", CR,
####", CR,
###", CR,
###", CR,
#", CR,
#", CR,
#", CR,
#", CR,
' Stamp/PBASIC directives
' 3 backgrounds used in game
' Maze background
' YouLose background
Related parts for 130-28029
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
KIT PROPELLER EDU PROJECT PARTS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
KIT PARTS PROCESS CONTROL
Manufacturer:
Parallax Inc
Datasheet:
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:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
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: