/*Hello ATTiny44A Pin configuration: ATtiny44 PA3 (pin 10)--> Green LED connected ATtiny44 PA2 (pin 11)--> Pushbutton connected Switch on and off an LED via external push button */ const int LED = 3; const int BOTON = 2; int val; void setup() { pinMode(LED, OUTPUT); pinMode(BOTON, INPUT); } void loop() { val = digitalRead(BOTON); if (val == LOW) { digitalWrite(LED, HIGH); } else { digitalWrite(LED, LOW); } }