27403 Parallax Inc, 27403 Datasheet - Page 58

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
' Get values and store them to EEPROM
DEBUG CR,
counter = 0
DO UNTIL counter >= 40 OR temp = 0
LOOP
' Display & compare values? (y/n)
DEBUG CR, "Compare values to ", CR,
DEBUGIN temp
' Display and compare values
IF temp = "y" OR temp = "Y" THEN
DEBUGIN DEC temp
WRITE Values + counter, Word temp
counter = counter + 2
DEBUG ">"
DEBUG CR,
counter = 0
READ Threshold, Word compare
DO UNTIL counter >= 40 OR temp = 0
READ Values + counter, Word temp
DEBUG CRSRX, 0, DEC5 temp, CRSRX, 12
IF temp > compare THEN
ELSEIF temp < compare THEN
ELSE
ENDIF
DEBUG CR
counter = counter + 2
"Enter up to 20 values", CR,
"between 100 and 1000", CR,
"Press 0 (zero) when done", CR,
">"
DEBUG "greater than"
DEBUG "less than"
DEBUG "equal to"
"
"Value
"----------
"threshold? (y/n)", CR,
">"
Threshold", CR,
Comparison", CR,
----------", CR

Related parts for 27403