One button to control On and Off LED

Hi, I want to create a single button that can control on and off LED. When I click for the 1st time, it will turn on the LED and stay on until next I click. Then 2nd time click, it will turn off the LED until next click. Anybody can help me ?

This has been ccovered many times on this forum, a quick search for toggle button should reveal many solutions

From that search result.

1 Like

Thankyou so much.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.