int buttonPin = 3; //pinout of the attiny44 int ledPin = 8; //pinout of the attiny44 int button = 0; void setup() { pinMode(buttonPin, INPUT); pinMode(ledPin, OUTPUT); } // when you push the button, the LED lights void loop() { button = digitalRead(buttonPin); if (button == LOW){// if you push (state LOW) the button... digitalWrite(ledPin, HIGH);// turn the LED on (HIGH is the voltage level) delay(600); // wait for a second } else { digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW } }