for a robot project I need 4 PWM channels with somewhere between 15-25kHz on an Arduino Mega2560. I'm trying to use Sam Knight's PWM library, but even the following minimal example behaves weird:
Ok, so I bruteforced the whole thing to find what numbers I have to give to the lib to drive the pins I want using this sketch and watching the oscilloscope for every pin