hulkbuster unibeam

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Johnathan_hoang
 
Posts: 5
Joined: Sun Dec 19, 2021 5:07 pm

hulkbuster unibeam

Post by Johnathan_hoang »

The code for the unibeam has some error codes that I can't understand

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.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: hulkbuster unibeam

Post by mikeysklar »

Can you enable verbose debug output.

It looks like you are using an unstable hourly build of the Arduino IDE, is that correct? Can you switch to a stable pre-compiled download release to reduce the possibilities of failure?

User avatar
Johnathan_hoang
 
Posts: 5
Joined: Sun Dec 19, 2021 5:07 pm

Re: hulkbuster unibeam

Post by Johnathan_hoang »

yes i was using an unstable hourly build and also was trying to run multiple codes at once so that seemed to fixed the problem

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: hulkbuster unibeam

Post by mikeysklar »

Thank you for the followup. Good to know.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”