// LED LIGHTING. Ignacio Peydro Duclos. MAS.863.12. // // // // (c) Massachusetts Institute of Technology 2012 // Permission granted for experimental and personal use; // license for commercial sale available from MIT. // #define output F_CPU 20000000 #include #include int main () { DDRA = _BV(PA7); while (1) { if (PINA & _BV(PA3)) { PORT = 0; } else { PORTA = _BV(PA7); } } }