27404 Parallax Inc, 27404 Datasheet - Page 70

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
has still not been released, the outer loop repeats again, the inner loop beeps three times,
and so on.
The Main Routine checks to find out which mode was selected with the command
ModeSelect, temp
zero, which indicates that a mode was not selected. In this case, more instructions are
displayed in the Debug Terminal. The
SELECT...CASE
' -----[ Subroutine - Mode_Select ]------------------------------------
' Selects mode of operation
Mode_Select:
' -----[ Main Routine ]------------------------------------------------
ModeTest:
DEBUG CR,
FOR temp = 1 TO 5
NEXT
RETURN
READ ModeSelect, temp
IF temp = 0 THEN
ELSE
FOR counter = 1 TO temp
NEXT
PAUSE 1000
IF pbSense = 0 THEN
ENDIF
DEBUG CR, "No mode selected",
DEBUG CR, CR,
SELECT temp
PAUSE 100
FREQOUT LedSpeaker, 100, 4000
WRITE ModeSelect, temp
EXIT
code block that displays the mode.
CR, "Release pushbutton after",
CR, "number of beeps to select",
CR, "mode (1 to 5)."
CR, "Hold down pushbutton",
CR, "then press/release",
CR, "Reset button."
"Operating in mode ", CR
. An
IF...THEN
statement checks to see if the mode argument is
ELSE
condition features a
' Display user instructions
' Cycle 5 times
' temp beeps, 1/second
' 1 second between beeps
' Button released?
' Record mode to EEPROM
' Exit FOR...NEXT loop
' Fetch mode from EEPROM
' Mode = 0 -> no mode selected
' mode <> 0 -> display mode
' Mode Message
' Select mode value to display
DEBUG
command and
READ

Related parts for 27404