#include #include #ifndef F_CPU #define F_CPU 1000000 #endif #include int i; ISR(ADC_vect) { uint8_t ADCLow = ADCL; uint16_t ADCResultTotal = (ADCH<<8) | (ADCLow); PORTB = ADCResultTotal; _delay_ms(250); _delay_ms(250); _delay_ms(250); _delay_ms(250); // Im Abstand von 1 Sekunde erfolgt die nächste Abtastung for(i=0; i<29; i++) {ADCSRA = (1<