In this condition i want to make s1 as web button. And s2 is physical push button. Both are inputs to arduino.
That means both switches are in off condition initially. if i switch s1 then light should on. Now s2 is in off condition, if i toggle s2 to on state and then to off state light should off. Now s1 is in on condition, if i toggle s1 to off state and then to on state light should on.
It looks like this what you have:
-
S1: normally open push button (momentary type).
-
S2: web control (high or low), not momentary, default is low
-
Each time you "just" press S1, the light should change state.
-
Each time S2 goes from low to high, the light should change state.
-
Default status on power up is S1 open (not pressed), S2 is low, light is off.
Is this correct?