I am working with a RP2040 pico, trying to use usb_midi port software I wrote for a Teensy 4.1.
I have many years of experience with c/c++, but Python is brand new to me(2 days)
I'm using MU with circuitpython with adafruit-circuitpython-raspberry_pi_pico-en_US-8.0.0-beta.0.uf2 firmware.
The Teensy software is a midi controller with motorized faders, rotary encoders, buttons and leds using Arduino c++. On the Teensy I used midi event callback to tell me when a midi message is received from the PC it is connected to.
I need the midi callback functionality or way to determine if a midi message is pending so polling of the switches/faders/encoders continues if there is no midi message to read instead of timing out on a receive.
I do not see this ability in the documentation, but to be honest I don't understand the docs for usb_midi.
Is this functionality possible or is the only way to know is to do a receive and timeout if no messages are available?
Thanks.
usb_midi non_blocking read
Moderators: adafruit_support_bill, adafruit
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
- mwinger
- Posts: 3
- Joined: Thu Nov 20, 2014 5:28 pm
Re: usb_midi non_blocking read
The reason I posted here is because I thought the usb_midi is supported by adafruit-circuitpython-raspberry_pi_pico-en_US-8.0.0-beta.0.uf2. I assumed this is adafruit firmware. I apologize if this is incorrect.
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/