27404 Parallax Inc, 27404 Datasheet - Page 58

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
' 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 27404