Hello!
My daughters and I have just started playing with the Arduino Leo, and as they are huge Scratch fans, I was very excited to find this software! I downloaded the software and the Firmware. I was able to install the software, but when I try to install the firmware, I get the following error at line 80:
S4AFirmware15.ino: In function 'void TIMER2_OVF_vect()':
S4AFirmware15:223: error: 'TCNT2' was not declared in this scope
And here is the function.
void configureServomotors() //servomotors interruption configuration (interruption each 10 ms on timer2)
{
newInterruption = false;
updateServoMotors = false;
TCCR2A = 0;
TCCR2B = 1<<CS22 | 1<<CS21 | 1<<CS20;
TIMSK2 = 1<<TOIE2; //timer2 Overflow Interrupt
TCNT2 = TIMER2_PRELOAD; //start timer
}
Should I add declaration statements at the top of the sketch? Thanks!
Erika