push button

I know it's something simple , but I am new to Arduino .
I'm looking for code , you press the button once it turns on the led and pressed a second time the same button is turning off the led

artour_kambel:
I know it's something simple , but I am new to Arduino .
I'm looking for code , you press the button once it turns on the led and pressed a second time the same button is turning off the led

If you are new to Arduino, check out the example sketches in the Arduino-IDE, from the IDE main menu select:

  • File - Examples - 02.Digital - StateChangeDetection
    Can you learn something from that StateChangeDetection example, does it help?