nathanRamaNoodles / Noodle-Synth

A User-friendly Arduino/Teensy Library to play RTTL/MIDI with infinite polyphonic notes; it has full control over volume, pitch, and music. No shields needed(Just a speaker).
https://create.arduino.cc/projecthub/nathan_ramanathan/play-music-without-delay-40e51b
MIT License
138 stars 14 forks source link

Non PWM pin defined as channel B! #25

Open boylesg opened 1 year ago

boylesg commented 1 year ago

In file synEngine.h

define CHA 3

define CHB 4

Pin 4 is not a PWM pin on Uno, Mini, Nano or Pro.

You need to change it to this:

if defined ARDUINO_AVR_UNO || defined ARDUINO_AVR_PRO || #defined ARDUINO_AVR_MEGA

#define CHA 9
#define CHB 10

else

#define CHA 3
#define CHB 4

endif