Design the software for an electronic torch that has a push button and 5 LEDs. With each successive push of the button an extra LED comes on. When all LEDS are on, the next button push will bring the system full circle so that all LEDs are off. It is required to design the software using a state machine strategy. Write the C code for your state machine design Implement an automatic power down mode as part of the design. The power down option would happen if the system is in manual mode and the light has been on for 5 minutes. In this case the LEDS are all switched off.
Thanks
Thanks