Skip to content

Commit

Permalink
Merge pull request #69 from DhrBaksteen/OPL3_bad_pins
Browse files Browse the repository at this point in the history
Fix OPL3 Duo pin definitions for Arduino
  • Loading branch information
DhrBaksteen authored Dec 9, 2020
2 parents f42a5d3 + aa67cab commit b08f497
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/OPL3.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
#define SYNTH_MODE_AM_AM 3

#if BOARD_TYPE == OPL2_BOARD_TYPE_ARDUINO
#define PIN_BANK 7
#undef PIN_ADDR // Undefine A0 and /IC pins from OPL2 and redefine for OPL3 Duo.
#undef PIN_RESET

#define PIN_BANK 7
#define PIN_ADDR 8
#define PIN_RESET 9
#else
#define PIN_BANK 5 // GPIO header pin 18
#endif
Expand Down

0 comments on commit b08f497

Please sign in to comment.