[an error occurred while processing this directive]
|
#include "iom128.h"
byte GetADCValue(byte cLineNo)
{
ADMUX = cLineNo;
ADCSRA |= (1 << ADSC); //start convertion
//wait convertion
while(ADCSRA & (1 << ADSC));
return (byte)(ADC >> 2);
}
На ADCSRA |= (1 << ADSC); - ругань ident. ADSC is undefined ???
Так ить #include "iom128.h"
E-mail: info@telesys.ru