2011_ACTIVITY #2 - INTRODUCING THE DIGITAL POTENTIOMETER

2011_ACTIVITY #2 - INTRODUCING THE DIGITAL POTENTIOMETER -...

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

View Full Document Right Arrow Icon
' What's a Microcontroller - DigitalPotUpDown.bs2 ' Sweep digital pot through values. ' ' {$STAMP BS2} ' {$PBASIC 2.5} ' DEBUG "Program Running!" D counter
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: VAR Byte c DO D LOW 5 FOR counter = 0 TO 127 PULSOUT 6, 1 PAUSE 10 NEXT HIGH 5 FOR counter = 0 TO 127 PULSOUT 6, 1 PAUSE 10 NEXT LOOP...
View Full Document

Ask a homework question - tutors are online