#define LED_PIN 1 //change that for our Attiny board #define BUTTON_PIN 0 //change that for our Attiny board // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin LED_BUILTIN as an output. pinMode(LED_PIN, OUTPUT); pinMode(BUTTON_PIN, INPUT_PULLUP); } // the loop function runs over and over again forever void loop() { digitalWrite(LED_PIN, digitalRead(BUTTON_PIN)); // turn the LED on (HIGH is the voltage level) delay(200); // wait for a second }