2011_ACTIVITY #3 - TRACKING LIGHT EVENTS

2011_ACTIVITY #3 - TRACKING LIGHT EVENTS - PAUSE 1000 P FOR...

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

View Full Document Right Arrow Icon
' What's a Microcontroller - StoreLightMeasurementsInEeprom.bs2 ' Write light measurements to EEPROM. ' ' {$STAMP BS2} ' {$PBASIC 2.5} ' time VAR Word eepromAddress VAR Byte e DEBUG "Starting measurements. ..", CR, CR, "Measurement Value", CR, "----------- -----", 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: PAUSE 1000 P FOR eepromAddress = 0 TO 58 STEP 2 HIGH 2 PAUSE 5000 RCTIME 2, 1, time DEBUG DEC2 eepromAddress, " ", DEC time, CR WRITE eepromAddress, Word time NEXT N DEBUG "All done. Now, run:", CR, "ReadLightMeasurementsFromEeprom.bs2" END...
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