Browse over 10,000 Electronics Projects using the Page Numbering provided at the bottom of each Page.

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

Single-Sided USB Charger
Single-Sided USB Charger
A FPGA controlled RGB LED MATRIX for Incredible Effects – the Hardware
A FPGA controlled RGB LED MATRIX for Incredible Effects – the Hardware
Using Nanotimers to Reduce IoT System Power Consumption by an Order of Magnitude
Using Nanotimers to Reduce IoT System Power Consumption by an Order of Magnitude
Replace a microwave’s beeping with the Windows XP startup sound
Replace a microwave’s beeping with the Windows XP startup sound
A DIY Laser Scanning Microscope
A DIY Laser Scanning Microscope
Reverse-engineering the surprisingly advanced ALU of the 8008 microprocessor
Reverse-engineering the surprisingly advanced ALU of the 8008 microprocessor
ESP8266 LED lighting: QuinLED v2.6 PCB
ESP8266 LED lighting: QuinLED v2.6 PCB
Switching LVDS Graphics in a Laptop Computer
Switching LVDS Graphics in a Laptop Computer
Teleknitting: TV-based string art
Teleknitting: TV-based string art
DIY Bubble Machine
DIY Bubble Machine
Start your day with Nerf target practice!
Start your day with Nerf target practice!
Teardown of a Peaktech 6225A
Teardown of a Peaktech 6225A

Top




Shares