Well, the problem is Pin 10. It took me a while to remember this, but Pin 10 has to be an output when you're using hardware SPI. What's happening is that, as soon as you press the 1 key, you are pulling Pin 10 low, which hangs up SPI.
Change your wiring to use another analog pin instead of Pin 10, and you should be good to go.
Using Keypad with Music Maker Shield
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
- noopara
- Posts: 45
- Joined: Tue Oct 14, 2014 2:44 pm
Re: Using Keypad with Music Maker Shield
Yes, indeed that was the problem.
I have spent days trying to get this to work.
Can you PLEASE change the documentation so it reflects the use of pin 10. As it is the documentation does list pins 11,12 and 13 as 'totally fixed' pins. It should also list #10.
Also, can you tell me where I can find the documentation on statements such as musicPlayer.pausePlaying(true); and musicPlayer.stopPlaying(); These are not in the Music Maker Library Reference. Are these and other methods ok to use with the Music Maker shield. Are other undocumented features and methods that would be helpful to know?
I have spent days trying to get this to work.
Can you PLEASE change the documentation so it reflects the use of pin 10. As it is the documentation does list pins 11,12 and 13 as 'totally fixed' pins. It should also list #10.
Also, can you tell me where I can find the documentation on statements such as musicPlayer.pausePlaying(true); and musicPlayer.stopPlaying(); These are not in the Music Maker Library Reference. Are these and other methods ok to use with the Music Maker shield. Are other undocumented features and methods that would be helpful to know?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Using Keypad with Music Maker Shield
I think those are the only two functions that didn't make it into the library reference.
I'll work on the tutorial a bit. Thanks for the feedback!
I'll work on the tutorial a bit. Thanks for the feedback!
- noopara
- Posts: 45
- Joined: Tue Oct 14, 2014 2:44 pm
Re: Using Keypad with Music Maker Shield
How about all of this:
https://github.com/adafruit/Adafruit_VS ... t_VS1053.h
Does all of this apply to the Music Maker?
https://github.com/adafruit/Adafruit_VS ... t_VS1053.h
Does all of this apply to the Music Maker?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Using Keypad with Music Maker Shield
Yes, that applies. But most of those in class Adafruit_VS1053 are only for use internally. They really shouldn't be declared as public.
- ppressle
- Posts: 7
- Joined: Wed Apr 27, 2016 11:57 am
Re: Using Keypad with Music Maker Shield
Related question. Can the GPIO inputs on the Music Maker shield be used with the Keypad library or easily be made to work with it? It looks like the keypad library hides the hardware and the GPIO inputs have a different access method than the Arduino inputs.
Thanks
Thanks
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Using Keypad with Music Maker Shield
I have no idea. I suppose anything is possible.
Please be positive and constructive with your questions and comments.