diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2023-09-26 14:35:49 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2023-09-26 14:35:49 +0300 |
commit | 67045d0aef5e8f75d702ce2aa9a35b740dc1a1e0 (patch) | |
tree | b55aa7d5f65e3a3e41e1dc034df4f2b993ba9111 /shmotbox.ino | |
download | shmotbox-67045d0aef5e8f75d702ce2aa9a35b740dc1a1e0.tar.gz |
initial commit: This uses the Control Surface library with a single potentionmeter, sending 14-bit CC values
Diffstat (limited to 'shmotbox.ino')
-rw-r--r-- | shmotbox.ino | 22 |
1 files changed, 22 insertions, 0 deletions
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(); +} |