// Simple push-ON/OFF toggle switch for LED by Kidkara
const int pbpin = 7;
const int ledpin=11;
bool Ledstate = LOW;
void setup() {
pinMode(pbpin, INPUT_PULLUP);
pinMode(ledpin, OUTPUT);
}
void loop() {
if (digitalRead(pbpin) == LOW)
{
Ledstate = !Ledstate;
digitalWrite(ledpin, Ledstate);
delay(170);
}
}