Sunday, May 16, 2010

photo 1

' Robotics with the Boe-Bot - Testphotoresistordividers.bs2
' Display what the I/O pins connectyed to the photoresister
' voltage dividers sense.

' {$STAMP BS2}
' {$PBASIC 2.5}

DEBUG "photoresistor states", CR,
"left RIght", CR,
"------- --------"

DO
DEBUG CRSRXY, 0, 3,
"P6 = ", BIN1 IN6,
" p3 = ", BIN1 IN3
PAUSE 100
LOOP

No comments:

Post a Comment