27403 Parallax Inc, 27403 Datasheet - Page 72

GUIDE APP ROBOTCS W/SUMOBOT V1.0

27403

Manufacturer Part Number
27403
Description
GUIDE APP ROBOTCS W/SUMOBOT V1.0
Manufacturer
Parallax Inc
Datasheet

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
' -----[ EEPROM Data ]--------------------------------------------------------
ModeSelect
' -----[ Initialization ]-----------------------------------------------------
IF pbSense = 1 THEN GOSUB Mode_Select
' -----[ Main Routine ]-------------------------------------------------------
READ ModeSelect, temp
IF temp = 0 THEN
ELSE
ENDIF
END
' -----[ Subroutine - Mode_Select ]-------------------------------------------
' Selects mode of operation
Mode_Select:
DEBUG CR, "No mode selected",
DEBUG CR, CR, "Operating in mode ", CR
SELECT temp
ENDSELECT
DEBUG CR,
FOR temp = 1 TO 5
CASE 1
CASE 2
CASE 3
CASE 4
CASE 5
FOR counter = 1 TO temp
DEBUG "one"
DEBUG "two"
DEBUG "three"
DEBUG "four"
DEBUG "five"
PAUSE 100
FREQOUT LedSpeaker, 100, 4000
CR, "Hold down pushbutton",
CR, "then press/release",
CR, "Reset button."
CR, "Release pushbutton after",
CR, "number of beeps to select",
CR, "mode (1 to 5)."
DATA
0
' Program
' Call Mode_Select subroutine
' Fetch mode from EEPROM
' Mode = 0 -> no mode selected
' mode <> 0 -> display mode
' Mode Message
' Select mode value to display
' End program
' Display user instructions
' Cycle 5 times
' temp beeps, 1/second

Related parts for 27403