2011_Activity #2 - Controlling position with your computer

2011_Activity #2 - Controlling position with your computer...

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

View Full Document Right Arrow Icon
' What's a Microcontroller - ServoControlWithDegbug.bs2 ' Send messages to the BASIC Stamp to control a servo using ' the DEBUG Terminal ' ' {$STAMP BS2} ' {$PBASIC 2.5} ' counter VAR Word pulses VAR Word duration VAR Word d DO D DEBUG CLS, "Enter number of pulses", CR
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: DEBUGIN DEC pulses DEBUG "Enter PULSOUT duration", CR DEBUGIN DEC duration DEBUG "Servo is running. ..", CR FOR counter = 1 TO pulses PULSOUT 14, duration PAUSE 20 NEXT DEBUG "DONE" PAUSE 1000 LOOP...
View Full Document

Ask a homework question - tutors are online