Hi Dave, yes thats it.
When I delete the first 2 lines "define ocs" and "@...", both codes compile ok.
Unfortunately, the behaviour is basicaly the same....they start with led off, and it should be on, more over, the counting is not regular, it depends in the speed of the click.
Some times, it goes off at 3, others at 5...etc....
I dont know....it is very over me.
I have tried to cut here and there taking ideas from both codes, but it does not work either.
I have to mention, that the clicks will be very fast, we could have posibly.......20 clicks per second, but we need to stop the mosfet after counting 3 clicks, hence the pause for 1 second.
I am sorry, my spanish brain is too tyre and can not speak properly.
Thanks for helping me guys.
Much appreciated.
Best regards.
Bookmarks