summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--shmotbox.ino22
2 files changed, 23 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b03bcec
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+build-leonardo
diff --git a/shmotbox.ino b/shmotbox.ino
new file mode 100644
index 0000000..2b5bb44
--- /dev/null
+++ b/shmotbox.ino
@@ -0,0 +1,22 @@
+#include <Control_Surface.h>
+
+class CCPotentiometer14 : public MIDIFilteredAnalog<ContinuousCCSender14<10>> {
+ public:
+ CCPotentiometer14(pin_t analogPin, MIDIAddress address)
+ : MIDIFilteredAnalog(analogPin, address, {}) {}
+};
+
+USBMIDI_Interface midi;
+CCPotentiometer14 pot {A0, MIDI_CC::General_Purpose_Controller_1};
+
+void
+setup()
+{
+ Control_Surface.begin();
+}
+
+void
+loop()
+{
+ Control_Surface.loop();
+}