2011_ACTIVITY #4 - SIMPLE LIGHT METER

2011_ACTIVITY #4 - SIMPLE LIGHT METER - DEBUG...

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

View Full Document Right Arrow Icon
' What's a Microcontroller - SimpleSubroutines.bs2 ' Demonstrate how subroutines work. ' ' {$STAMP BS2} ' {$PBASIC 2.5} ' DO D DEBUG CLS, "Start main routine.", CR PAUSE 2000 GOSUB First_Subroutine DEBUG "Back in main.", CR PAUSE 2000 GOSUB Second_Subroutine
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: DEBUG "Repeat main. ..", CR PAUSE 2000 LOOP L First_Subroutine: F DEBUG " Executing first " DEBUG "subroutine.", CR PAUSE 3000 RETURN R Second_Subroutine: S DEBUG " Executing second " DEBUG "subroutine.", CR PAUSE 3000 RETURN...
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