lipoyang / SimpleYMF825

Simple YMF825 driver for Arduino
Apache License 2.0
10 stars 2 forks source link

Does not work with Arduino Mega(or a board with different SPI pins) #1

Open taku-147 opened 1 year ago

taku-147 commented 1 year ago

This driver does not work on the Arduino Mega. This is because the SPI pins are different from Uno and others.

In Mega, the SPI pins look like this

To resolve this, line 8 of "SimpleYMF825.cpp" needs to be changed to #define PIN_SS 53 (I did not use it, but in some cases, the value of "PIN_RST_N" on line 7 must also be changed.) In my case this worked. (Instead, it will no longer work with Uno.)

The following is recommended

  1. use "SS" to automatically assign pin numbers.
  2. write in README.md how to set up different SPI pins on Arduino Mega and other boards.

Thanks! (I am Japanese so my writing may be strange in some places. Sorry.)

lipoyang commented 1 year ago

I apologize for neglecting to reply. I am sorry that I have no resources to deal with it right now. Thanks for the information. I shall do it.