Hi All, I've been a little bit slack, sorry for not posting!!!
Here's the code for my megafighter, 32buttons, 16 faders/knobs, support for rotary encoders, user programmable addressable rgb LEDs and saving to eeprom. It uses a mega2560 and the dual moco-lufa firmware (usb-serial and usb-midi) and the adafruit neopixel library.
It's on my github repo, the original code is almost non-existent now but it did originally come from the arduino midifighter instructable as it's all written on arduino ide with arduino libs etc. the original code is open source, by extension so is mine, a mention in your code if you do adapt it would be nice, enjoy it and don't blame me if it breaks anything (it shouldn't break anything, I've been using it for some time now). I make no apologies for my coding style, or over/under commenting, it is what it is and it works for me. I haven't done a schematic, it's pretty simple to work out which pins you should attach to buttons and faders, if your faders appear noisy, you probably need to move the shared gnd to another gnd pin on the mega 2560, if that doesn't solve it, you'll need to look into solving the noise issue yourself, this is afterall a WIP and prototype code.
https://github.com/Reggi3/megafighter
I will add my precision pitch fader code sometime over the next couple of days or so.
Bookmarks