int const LED = 8; // the pin on my bored not in AtTiny 44 int const BOTTON = 7; int botton_stat = 0; void setup() { // put your setup code here, to run once: pinMode(LED,OUTPUT); pinMode(BOTTON,INPUT); digitalWrite(BOTTON,HIGH); } void loop() { botton_stat = digitalRead(BOTTON); if (botton_stat == HIGH) { digitalWrite(LED,LOW); // turn the LED off by making the voltage LOW } else{ digitalWrite(LED,HIGH); // turn the LED on (HIGH is the voltage level) } }