2011_Activity #3 - Push control of an LED

2011_Activity #3 - Push control of an LED - '{$STAMP BS2}...

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

View Full Document Right Arrow Icon
' What's a Microcontroller - PushbuttonControlledLed.bs2 ' Check pushbutton state 10 times per second and blink LED when pressed. '
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: '{$STAMP BS2} '{$PBASIC 2.5} ' DO DEBUG ? IN3 IF (IN3 = 1) THEN HIGH 14 PAUSE 50 LOW 14 PAUSE 100 ELSE PAUSE 100 ENDIF LOOP L...
View Full Document

Ask a homework question - tutors are online