#ifndef F_CPU /* wenn F_CPU nicht bereits vorher definiert (z.B. durch Übergabe als Parameter zum Compiler innerhalb des Makefiles) */ #define F_CPU 4000000L #endif #include #include #include #include "lcd-routines.h" volatile uint8_t time_pwm, time_mess; //Timer1 Interrupthandler ISR (TIMER1_COMPA_vect) { time_pwm++; time_mess++; if(time_mess > 12) { time_mess=0; } } //Timer einstellen void timer_init(void) { //Timer1 Vergleichswert auf 0,235s OCR1A = 918; //Timer1 CTC Modus auswählen TCCR1B = (1<