2011_Activity #4 - Two pushbuttons control in two Led circuits

2011_Activity #4 - Two pushbuttons control in two Led circuits

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

View Full Document Right Arrow Icon
'What's a Microcontroller - PushbuttonControlOfTwoLeds.bs2 'Blink P14 LED if P3 pushbutton is pressed, and blink P15 LED if 'P4 pushbutton is pressed. ' ' {$STAMP BS2} ' {$PBASIC 2.5}
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ' DO DEBUG HOME DEBUG ? IN4 DEBUG ? IN3 IF (IN3 = 1) THEN HIGH 14 PAUSE 50 ELSEIF (IN4 = 1) THEN HIGH 15 PAUSE 50 ELSE PAUSE 50 ENDIF LOW 14 LOW 15 PAUSE 50 LOOP...
View Full Document

This note was uploaded on 01/10/2011 for the course EE 1244 taught by Professor Drera during the Fall '10 term at Conestoga.

Ask a homework question - tutors are online