Led output controlled by 2 modes

Hello
i am new here; i hope that i can learn with you Arduino programming and to be a memeber within you.
i have 2 pushbuttons 1 for mode selection it will be 2 modes.
and second pushbutton will be for action.
so when the mode 1 is initially selected i press the second button the output goes high when i release pushbutton the output state goes low.
when i press once the mode pushbutton the mode changed when i press the second push button the output goes high when i release the pushbutton it stays high, the same 2nd pushbutton when i press on it and i release it the output goes low and it stays low until i press the 2nd pushbutton.

This is the idea, please i need your help to start this programming.
Thanks in Advance
Best Regards

Welcome to the forum

Start by looking at the examples in the IDE. They will show you the general layout of an Arduino sketch (program), how to read the input from a pushbutton and control the output to an LED

Come back when you get stuck

1 Like

ok, thank You

Hi hic_arduino,

Before you start coding, you'll need to better describe the logic you're trying to implement. I looked through your post and am not really sure what you are trying to do.

Pat.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.