TestBothPhotoresistors - timeRight", CR,...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
' Robotics with the Boe-Bot - TestBothPhotoresistors.bs2 ' Test Boe-Bot RC photoresistor circuits. ' ' {$Stamp bs2} ' Stamp directive. ' {$PBASIC 2.5} ' PBASIC directive. ' timeLeft VAR Word ' Variable declarations. timeRight VAR Word t DEBUG "PHOTORESISTOR VALUES", CR, ' Initialization. "timeLeft
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: timeRight", CR, "-------- ---------" DO ' Main routine. D HIGH 6 ' Left RC time Measurement. PAUSE 3 RCTIME 6,1,timeLeft HIGH 3 ' Right RC time measurement. PAUSE 3 RCTIME 3,1,timeRight DEBUG CRSRXY, 0, 3, ' Display measurements. DEC5 timeLeft, " ", DEC5 timeRight PAUSE 100 LOOP...
View Full Document

This note was uploaded on 04/23/2010 for the course EECC 0306-201 taught by Professor Roymelton during the Spring '10 term at RIT.

Ask a homework question - tutors are online