Hola, buenas noches (tiempo local). Deseo cargar S4A a mi arduino Leonardo, sin embargo, al descargar el firmaware que se ofrece en la pagina de "
", me aparece un error de que no han sido declaradas una variables (TCCR2A TCCR2B TIMSK2 TCNT2); por tal motivo, con la finalidad de reparar el desperfecto, declare las variables como int, solo que despues, me aparecio en la compilacion otro error:
Arduino:1.6.5 (Windows 8.1), Placa:"Arduino Leonardo"
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
from S4AFirmware15.ino:19:
S4AFirmware15:21: error: expected unqualified-id before 'volatile'
S4AFirmware15:21: error: expected ')' before 'volatile'
S4AFirmware15:21: error: expected ')' before 'volatile'
S4AFirmware15:21: error: 'TCNT2' does not name a type
S4AFirmware15.ino: In function 'void configureServomotors()':
S4AFirmware15:82: error: 'CS22' was not declared in this scope
S4AFirmware15:82: error: 'CS21' was not declared in this scope
S4AFirmware15:82: error: 'CS20' was not declared in this scope
S4AFirmware15:84: error: 'TCNT2' was not declared in this scope
S4AFirmware15.ino: In function 'void reset()':
S4AFirmware15:165: error: 'TCNT2' was not declared in this scope
S4AFirmware15.ino: In function 'void TIMER2_OVF_vect()':
S4AFirmware15:224: error: 'TCNT2' was not declared in this scope
expected unqualified-id before 'volatile'
This report would have more information with
"Show verbose output during compilation"
activala desde Archivo > Preferencias
Esperon me puedan proporcionar apoyo para solucionar estos problemas.
De antemano, muchas gracias