#include #include #include // 200000 and 50000 for 10-bit operation, // F_ADCH can be higher with lower resolutions #define F_ADCH 200000 #define F_ADCL 50000 #if F_CPU > 64 * F_ADCH # define PRESCALERBITS ((1< 32 * F_ADCH # define PRESCALERBITS ((1< 16 * F_ADCH # define PRESCALERBITS ((1< 8 * F_ADCH # define PRESCALERBITS ((1< 4 * F_ADCH # define PRESCALERBITS ((1< 2 * F_ADCH # define PRESCALERBITS ((1< 2 * F_ADCL # define PRESCALERBITS (0) #else # error "F_CPU is undefined or too low to use the ADC" #endif #define LED0 (1<