User Activity

Three mode:Mode 0: OffMode 1: 80% loading (PWM)Mode 2: 50% loading (PWM)Frequency: 10KHzCycling mode (push button):Mode 0 -> Mode 1 -> Mode 2 -> Mode 0 -> …. -> ….When push the button, it will change the next mode immediately.If I use the delay loop ...
How to use the timer to keep our LED on 80% to 10% (linear down) of the time by setting a period of 500X, turning it on when the counter is 0 to 400X (0-15 minutes) and turning it off when it is 400X to 500X(5 minutes)?The time and period is a draft ...