towlerg: that's how it works. First touch turns ON, second touch turns OFF.
Richard: so what was wrong with the first draft ?
basically nothing. First I didn't proper understand how the code works and wrong output handling. Then I hooked up serial converter and send out the results. After understanding the principe it's easy to modify it to my needs.
I needed this for switching an extraction fan as I wrote before, under my stereoscopic soldering microscope only with touching with soldering iron tip, or finger. It's more comfortable then struggling with rocker (main) switch on microscope body.
If anyone interested how it looks and works, here a short video:
Bookmarks