So, in this repo, I will be learning how to control a trinket M0 from a midi controller to make skin crawling bleeps, bloops and blink a few LEDs on the way.
Setup
This github does assume that you have an M0 Trinket and you can at least get it to blink and run some of the basic included sketches from Adafruit. There should be plenty of resources to get that up and running.
https://learn.adafruit.com/adafruit-trinket-m0-circuitpython-arduino/arduino-ide-setup
Perhaps run a few of the initial sketches there as well. There should be one that makes the on board LED (DOT) blink.
Once you get that up, you will need to install the MIDIUSB.h library.
https://github.com/arduino-libraries/MIDIUSB http://blog.stekgreif.com/?p=699 https://tigoe.github.io/SoundExamples/midiusb.html
Sketches
M0_Simple_Synth_01
Simple Sketch that listens to midi notes and logs them in the serial output of the IDE.
M0_Simple_Synth_02
Listens to notes and displays a Light RGB based on the note played.