Suport for Adafruit Feather RP2040 #833
Replies: 2 comments 8 replies
-
|
Does the Adafruit TinyUSB example work correctly? |
Beta Was this translation helpful? Give feedback.
-
|
I've just pushed a fix that only accesses the With that change, the following code works fine for me: #include <Control_Surface.h>
USBMIDI_Interface midi;
void setup() {
Control_Surface.begin();
}
void loop() {
static uint8_t counter = 0;
static Timer<millis> timer {1000};
if (timer)
Control_Surface.sendControlChange(0x10, (counter++) & 0x7F);
Control_Surface.loop();
}Please verify that it also works on your end. It should send an increasing MIDI Control Change message every second. If your own code still crashes, please post the full, exact code that causes the issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
has anyone succeeded using an Adafruit Feather RP2040 board in any project?
Just trying to use the library i get to compile a simple file as the first example code:
#include <Control_Surface.h>
USBMIDI_Interface midi;
CCPotentiometer pot { A0, MIDI_CC::General_Purpose_Controller_1 };
void setup() { Control_Surface.begin(); }
void loop() { Control_Surface.loop(); }
but i receive the message from Windows:
"USB device not recognized - USB device malfunctioned, and Windows dos not recognize it"
I am guessing it has something to do with the MBED architecture, but i am a relatively noob and am a little lost here.
Since the Pi Pico is supported i thought the Adafruit version would also be possible to get running.
I am using the earlephilhower/arduino-pico core and Adafruit TinyUSB library is enabled under "USB Stack".
I also tried to throw a look at Custom-USB-MIDI-Backend page, but i don´t understand the page or the code and how i could use that to create a Custom Backend for the Adafruit Feather RP2040.
am I not getting something basic here? or is it really not that trivial?
Any help appreciated!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions