Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Switched flashing LED

Switched flashing LED

The idea was to have two LEDs, one is flashing all the time and the other one joins in as long as a switch is pressed. The LEDs then flash alternating. The hardware is very straight forward.
The first program is rather straight forward. It basically consists of two different loop. One loop is used when the switch is not pressed, the other loop is used when the switch is pressed. The main disadvantage is that the program doesn’t look at the switch when it is processing the second loop. In fact much of the time of the first loop it isn’t looking either. In this case the delay isn’t very long, but if it was it could take quite some time before the program would notice that the switch is actually pressed.

Visit Here for more.

 

More Articles to Read

Teardown, experiments and calibration of an Ist-Rees laser spectrum analyzer
Teardown, experiments and calibration of an Ist-Rees laser spectrum analyzer
Real Time Planet Tracking System
Real Time Planet Tracking System
Bookcase automatically opens to reveal secret lair
Bookcase automatically opens to reveal secret lair
PCI Express High Performance Reference Design
PCI Express High Performance Reference Design
Muxtronics open source 12V powerbank
Muxtronics open source 12V powerbank
TI’s Little Professor
TI’s Little Professor
App note: Testing inductors at application frequencies
App note: Testing inductors at application frequencies
1968 Princeton Reverb Repairs
1968 Princeton Reverb Repairs
Skill Sunday: Power Over Ethernet for Arduino
Skill Sunday: Power Over Ethernet for Arduino
More on Color TFT Displays ~ The Big Ones — 240 X 320
More on Color TFT Displays ~ The Big Ones — 240 X 320

Top




Shares