Me again, more goofing around
Easy project press a button and the LED lights press it again and the LED goes out.
Easy project press a button and the LED lights press it again and the LED goes out.
The pause is an issue is there a cleaner way of doing this?main:
if pin0 = 1 then high 1 ;is pin0 high, if yes switch output 1 on
pause 500 ;wait for fat finger to get off the button
endif ;end this loop and carry on if pin0 is low
if pin0 = 1 then low 1 ;pin0 is high? then switch output 1 off
pause 500 ;wait for fat finger to get off the button
endif ;end this loop and carry on
goto main ;loop back to the start