Music maker code problems

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Terrizor
 
Posts: 12
Joined: Thu Oct 28, 2010 6:36 pm

Music maker code problems

Post by Terrizor »

Hi ,

I am trying to follow the instructions for your music maker and when I made the little change to the Player-simple test code , I then had this error on verify:
player_simple:44: error: 'SHIELD_RESET' was not declared in this scope

Please advise?

User avatar
SeiRruf
 
Posts: 82
Joined: Thu Sep 04, 2014 3:07 am

Re: Music maker code problems

Post by SeiRruf »

Can you please post a copy of the code you revised?

From that error, it's declaring that the (defined?) variable 'SHIELD_RESET' was never declared. You may have accidentally deleted it, forgot to define it (typeo?) or moved some things around.

The only reset variable I know that exists in the sample code is "BREAKOUT_RESET". You can try replacing "SHIELD_RESET" on line 44 with "BREAKOUT_RESET", if you made changes there.

I doubt it would work too well but you could also try adding "#define BREAKOUT_RESET 9" to the top of your code to please the error.

Just some troubleshooting while you wait for more support replies.

Terrizor
 
Posts: 12
Joined: Thu Oct 28, 2010 6:36 pm

Re: Music maker code problems

Post by Terrizor »

Thanks, I figured that out and changed BREAKOUT to SHIELD.

User avatar
mikethechap
 
Posts: 18
Joined: Mon Sep 02, 2013 6:59 pm

Re: Music maker code problems

Post by mikethechap »

I had this as well. Is there someplace I can post the corrected script so the Library can be corrected? As soon as I changed it to BREAKOUT_RESET instead of SHIELD_RESET on the first variable, it worked, The rest of the new code seems fine. But, the first variable should be BREAKOUT_RESET, not SHIELD_RESET. Thanks.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Music maker code problems

Post by adafruit_support_mike »

You can post the code here in the forums.. just put CODE tags around it to preserve the formatting and make it easy for folks to select and copy it.

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

Return to “Arduino Shields from Adafruit”