#include #include #include #define F_CPU 8000000UL /* Interner Takt mit 8.0000 Mhz */ #ifndef F_CPU /* Definiere F_CPU, wenn F_CPU nicht bereits vorher definiert (z.B. durch Übergabe als Parameter zum Compiler innerhalb des Makefiles). Zusätzlich Ausgabe einer Warnung, die auf die "nachträgliche" Definition hinweist */ #warning "F_CPU war noch nicht definiert, wird nun mit 3686400 definiert" #endif #include #include #ifndef EEMEM // alle Textstellen EEMEM im Quellcode durch __attribute__ ... ersetzen #define EEMEM __attribute__ ((section (".eeprom"))) #endif volatile uint8_t merker; volatile uint8_t zaehler; uint8_t eeFooByte EEMEM = 123; volatile uint16_t result; volatile uint8_t i; ISR (TIM0_OVF_vect) { zaehler +=1; if (zaehler == 122) //Ursprungswert 122 { TCCR0B &= ~((1<= 0x35) //Einstelung für Fenster Bad Straße 35h { PORTA &= ~(1<= 0x35) //Einstelung für Fenster Bad Straße 35h { PORTA &= ~(1<= 0x35) //Einstelung für Fenster Bad Straße 35h { PORTA &= ~(1<= 0x35) //Einstelung für Fenster Bad Straße 35h { PORTA &= ~(1<