Hello,
I would like to know which pin number should I use to read the analog input ADC(6,7) on Rainbowduino.
Should I declare pin6 and pin7?
Or pin19 and pin22 as in the ATMEGA168 original pinout?
(atmel.com/dyn/resources/prod … /2545S.pdf)
In case it’s on the pin6,
the declaration of pin as input and the use of analogRead is the same used for Arduino,
and I don’t need to change the rainbow.h file, no?
(I suppose the answer is yes, but if someone can confirm…)
like this ?
[code]int adcPin = 6;
void setup() {
pinMode(adcPin, INPUT);
}
void loop() {
val = analogRead(adcPin);
}[/code]
Muchas gracias for your help,
kk