toggle output of propeller with one input switch
gregmazarakis
Posts: 15
I started to write a program in C using simpleIDE with different in- and outputs.
I define the inputs as integers like 'int button1=input(12);" and setting the output 17 with "high(17);"
I would like to have the same input toggling the output so that it comes on with the first push action and goes off with the following push-action.
Can anyone give me an example of how to do this??
I define the inputs as integers like 'int button1=input(12);" and setting the output 17 with "high(17);"
I would like to have the same input toggling the output so that it comes on with the first push action and goes off with the following push-action.
Can anyone give me an example of how to do this??
Comments