How to write an example?

I wanted to via Tinker app (touch = led Hi, do not touch = led Low) how to write an example ?

I was a novice

Hi @ison,

You can simply do that by hooking up and LED to one of the Digital pins and set it to ‘DigitalWrite’

I do not want to (touch = led Hi , touch = led low)

You mean to create your own app maybe? Not sure if i understood you correctly :smiley:

A web app by @BDub here:

Yes, I think what @kennethlimcp pointed you to is what you wanted, plus you need javascript mousedown and mouseup events, since it seems you don’t want to click a button for LED on and LED off, but click and hold for LED on, release for LED off.

yes , click and hold for LED on, release for LED off.
how to write an example ?