Code: Select all
Arduino: 1.8.19 Hourly Build 2021/12/16 10:33 (Windows 10), Board: "Arduino Gemma"
In file included from C:\Users\johna\BANNED\Documents\Arduino\sketch_dec19\sketch_dec19.ino:9:0:
c:\users\johna\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\power.h: In function 'void loop()':
c:\users\johna\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\power.h:1225:1: error: a function-definition is not allowed here before '{' token
{
^
c:\users\johna\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\power.h:1274:1: error: a function-definition is not allowed here before '{' token
{
^
c:\users\johna\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\power.h:1795:89: error: cannot declare static function inside another function
static __inline__ void clock_prescale_set(clock_div_t) __attribute__((__always_inline__));
^
c:\users\johna\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\power.h:1798:1: error: a function-definition is not allowed here before '{' token
{
^
sketch_dec19:125:3: error: 'setRingsToIdleValues' was not declared in this scope
setRingsToIdleValues();
^~~~~~~~~~~~~~~~~~~~
sketch_dec19:126:3: error: 'startInterp' was not declared in this scope
startInterp(105); // ~3.5 second startup
^~~~~~~~~~~
C:\Users\johna\BANNED\Documents\Arduino\sketch_dec19\sketch_dec19.ino: At global scope:
sketch_dec19:156:3: error: expected unqualified-id before 'for'
for(uint8_t i=0;;) {
^~~
sketch_dec19:156:20: error: expected unqualified-id before ')' token
for(uint8_t i=0;;) {
^
sketch_dec19:160:1: error: expected declaration before '}' token
}
^
exit status 1
'setRingsToIdleValues' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.