I would like to make button on my dashboard that mimics my frontdoor doorbell that I made like Frencks 2 dollar doorbell project But I can’t seem to find a way to do a switch.turn_on when I press the button and a switch.turn_off when i release the button.
So I would like to keep the “ringgg” on when I have my mouse pressed on the button and “ringgg” off when I release the button. Just like my doorbell.
Sounds simple, but could not find the answer to this question. Seems so simple, but could not find a “button release” anywhere.