{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lecture_02 - week 2 - Flashing LEDS & delays

Lecture_02 - week 2 - Flashing LEDS & delays -...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Lecture week 2 Flashing LEDS & delays. SEE215
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
A LED can be flashed on and off continuously by - turning it ON - for a period of time & - then turning it OFF - for a period of time - repeating the cycle. Flashing LEDS START INIT LED ON LED OFF Timer ON Timer OFF
Image of page 2
Press any key(s) Flash LED (s) associated with that key one second ON & one second OFF. The key may be released during the OFF time and any other key(s) pressed for the next cycle. As each delay is one second, we can make use of subroutines. Specification of flasher
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon