27404 Parallax Inc, 27404 Datasheet - Page 218

COMPETITION RING FOR SUMOBOT

27404

Manufacturer Part Number
27404
Description
COMPETITION RING FOR SUMOBOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 27404

Accessory Type
Hobby and Education
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
Because
#THEN
be ignored, unless of course, you change the
Example Program: CompilerDirectives.bs2
CompilerDirectives.bs2 can actually be six different programs. That's because it has
conditional compiler directives for three different
LED_MODE
code block will become part of the program. The code inside the
#SELECT DEBUG_MODE
#ENDSELECT
' -----[ Main Routine ]------------------------------------------------
DO
LOOP
Based on the
CompilerDirectives.bs2 is going to do when you download it to the BASIC
Stamp.
LED_MODE
s. This gives you six different combinations of
#CASE 0
#CASE 1
#CASE 2
DEBUG CRSRX, 0, ? counter
counter = counter + 1
#IF LED_MODE = 1 #THEN
#ELSE
#ENDIF
DEBUG "DEBUG_MODE is zero."
DEBUG "DEBUG_MODE is one."
DEBUG "DEBUG_MODE is two."
DEBUG "LED state = ", BIN1 counter.BIT0, CRSRUP
TOGGLE LedSpeaker
PAUSE 200
DEBUG "LED_MODE disabled", CRSRUP
PAUSE 100
is 1, the code inside the commands nested in the
LED_MODE
and
#DEFINE LED_MODE
DEBUG_MODE
DEBUG_MODE
DEBUG_MODE
#DEFINES
directive to zero.
s and two different
#IF LED_MODE = 1
and
, predict what
#ELSE
LED_MODE
block will
.

Related parts for 27404