27403 Parallax Inc, 27403 Datasheet - Page 219
27403
Manufacturer Part Number
27403
Description
GUIDE APP ROBOTCS W/SUMOBOT V1.0
Manufacturer
Parallax Inc
Datasheet
1.27404.pdf
(266 pages)
Specifications of 27403
Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
SumoBot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 219 of 266
- Download datasheet (6Mb)
' -----[ Title ]--------------------------------------------------------------
' Applied Robotics with the SumoBot - CompilerDirectives.bs2
' How to use compiler directives to select which code blocks to run.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Compiler Definitions ]-----------------------------------------------
#DEFINE LED_MODE = 1
#DEFINE DEBUG_MODE = 2
' -----[ I/O Definitions ]----------------------------------------------------
#IF LED_MODE = 1 #THEN
#ENDIF
' -----[ Variables ]----------------------------------------------------------
counter VAR Word
' -----[ Initialization ]-----------------------------------------------------
DEBUG CLS, "Program running...", CR, CR
#SELECT DEBUG_MODE
#ENDSELECT
DEBUG CR, CR
' -----[ Main Routine ]-------------------------------------------------------
LedSpeaker PIN 5
#CASE 0
#CASE 1
#CASE 2
√
√
√
√
√
DEBUG "DEBUG_MODE is zero."
DEBUG "DEBUG_MODE is one."
DEBUG "DEBUG_MODE is two."
Enter, save, and run Compiler directives.bs2 and check the program's behavior
against your predictions.
Change
Predict how the program will behave the next time it is downloaded to the
BASIC Stamp.
Run the program, and again test your predictions.
Repeat for the other four combinations of values that you can set
DEBUG_MODE
#DEFINE LED_MODE = 1
equal to.
to
#DEFINE LED_MODE = 0
.
LED_MODE
and
Related parts for 27403
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
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:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: