I have a momentary switch that makes pinC.3 = 0 (normally held high)
I am trying to make the action of a toggle/flip flop when the button gets pressed. When the button is pressed it is to make C.2 high or low depending on it's current state. However I cannot find a way round to make it a start/stop event on each time button pressed.
I am trying to make the action of a toggle/flip flop when the button gets pressed. When the button is pressed it is to make C.2 high or low depending on it's current state. However I cannot find a way round to make it a start/stop event on each time button pressed.
Code:
Start1:
if pinC.3 = 0 and PinC.2 = 0 then
PinC.2 = 1
else
if pinC.3 = 0 and PinC.2 = 1 then
PinC.2 = 0
End if:End if
Goto Start1