How to chose between auto run or manual control of blink and fade of an LED? Answered
my name is ahmed darwish
i'm a teacher
i'd like to make a project for students to show them the capabilities of the UNO
my project is as follows first board: LED
in this board i have several mode:
mode one chosen by PB1 to blink of the LED automatically
mode two chosen by PB2 to PWM of the an LED automatically
mode three chosen by PB3 to switch on and off the LED manually by PB
mode four chosen by PB4 to control the delay of blink of the LED manually by variable resistor
mode five chosen by PB5 to control the PWM value of the LED manually by variable resistor
I though i can assign an integer that takes the number assigned to each PB and upon the value of that integer the loop shall perform a certain routine and ignores the others.
can you help me with that please? have many thanks.
you are welcome to contact me directly on my mail: firstname.lastname@example.org or my cell phone: 0096551105252