0

Music Maker Shield Interrupts? Which?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Music Maker Shield Interrupts? Which?

by fhpage on Thu Dec 07, 2017 8:42 pm

I am using the "player_interrupts" shield. It is working fine, but need to know all the digital I/O pins it is using. Or put it another way, which are available for use? I tried reviewing the code but do not completely understand.
Any help would be most appreciated.

fhpage
 
Posts: 3
Joined: Thu Dec 07, 2017 8:30 pm

Re: Music Maker Shield Interrupts? Which?

by adafruit_support_bill on Fri Dec 08, 2017 7:31 am

Pin usage is detailed here in the guide: https://learn.adafruit.com/adafruit-mus ... -breakouts

adafruit_support_bill
 
Posts: 70460
Joined: Sat Feb 07, 2009 10:11 am

Re: Music Maker Shield Interrupts? Which?

by fhpage on Fri Dec 08, 2017 9:16 am

Going through the documentation and the code, it appears the only digital i/o pins not used are 0, 2, and 5.
If so, I am looking for effective ways to manage the playing of files other than simply cycling through in a sequential fashion.
Any sample code success stories?
So few available pins limits options for doing other things while the music is playing.Could some of the pins be recovered by hard coding values in the library?

fhpage
 
Posts: 3
Joined: Thu Dec 07, 2017 8:30 pm

Re: Music Maker Shield Interrupts? Which?

by adafruit_support_bill on Fri Dec 08, 2017 9:37 am

it appears the only digital i/o pins not used are 0, 2, and 5.

Keep in mind that analog pins are also capable of digital I/O: https://www.arduino.cc/en/Tutorial/AnalogInputPins

Pin mapping

The analog pins can be used identically to the digital pins, using the aliases A0 (for analog input 0), A1, etc. For example, the code would look like this to set analog pin 0 to an output, and to set it HIGH:

pinMode(A0, OUTPUT);
digitalWrite(A0, HIGH);


There are a few projects in the Learning System based on the MusicMaker or VS1053 breakout.
https://learn.adafruit.com/overwatch-lu ... rototyping
https://learn.adafruit.com/mystery-box- ... o/overview
https://learn.adafruit.com/pianoglove/program-itl

adafruit_support_bill
 
Posts: 70460
Joined: Sat Feb 07, 2009 10:11 am

Re: Music Maker Shield Interrupts? Which?

by fhpage on Tue Dec 12, 2017 10:41 am

Perfect! - Thank You...

fhpage
 
Posts: 3
Joined: Thu Dec 07, 2017 8:30 pm

Please be positive and constructive with your questions and comments.