Open MarcosHAC opened 1 year ago
Hey Marcos, I will gladly help you!
It seems that you're not using my modified Adafruit_tinyusb library. Later today I'll have a look at it and try to come with a solution.
Obrigado pela dica!!
I replaced the github tinyusb library with the one you provided and code is now compiling!!! Thank you!!!!
Obrigado pela dica!!
I replaced the github tinyusb library with the one you provided and code is now compiling!!! Thank you!!!!
Glad I could be of help.
Hi
this is a great project. It will help me play at church for sure. I got all the libraries and dependencies I found (Adafruit_TinyUSB_Arduino, Pico-PIO-USB, Adafruit_SSD1306, Adafruit-GFX-Library, Adafruit_BusIO, arduino_midi_library). I also selected the board as instructed on Github (Pico). When I do a Verify on the code, I am getting the following error. It seems either a declare is nissing n the code, or I have a missing library. Please help to get this fixed. Thank you.
Arduino: 1.8.19 (Linux), Board: "Raspberry Pi Pico, 2MB (no FS), 120 MHz, Small (-Os) (standard), Disabled, Disabled, Disabled, Disabled, None, Adafruit TinyUSB, IPv4 Only, Default (UF2)"
../Documents/Pedal/beta/beta.ino: In function 'void poll_midi_host_rx()': beta:771:10: error: 'tuh_midi_configured' was not declared in this scope; did you mean 'tuh_configure'? 771 | if (!tuh_midi_configured(midi_dev_addr)) { | ^
~~~~~~ | tuh_configure beta:777:9: error: 'tuh_midih_get_num_rx_cables' was not declared in this scope 777 | if (tuh_midih_get_num_rx_cables(midi_dev_addr) < 1) { | ^~~~~~~ beta:781:5: error: 'tuh_midi_read_poll' was not declared in this scope; did you mean 'tud_midi_read'? 781 | tuh_midi_read_poll(midi_dev_addr); | ^~~~~~ | tud_midi_read /home/marcos/Documents/Pedal/beta/beta.ino: In function 'void midi_host_task()': beta:790:5: error: 'tuh_midi_stream_flush' was not declared in this scope; did you mean 'tud_midi_stream_write'? 790 | tuh_midi_stream_flush(midi_dev_addr); | ^~~~~| tud_midi_stream_write /home/marcos/Documents/Pedal/beta/beta.ino: In function 'void send_sysex(uint8_t*, int)': beta:878:5: error: 'tuh_midi_packet_write' was not declared in this scope; did you mean 'tud_midi_packet_write'? 878 | tuh_midi_packet_write(midi_dev_addr, packet); | ^~~~~| tud_midi_packet_write /home/marcos/Documents/Pedal/beta/beta.ino: In function 'void tuh_midi_rx_cb(uint8_t, uint32_t)': beta:930:11: error: 'tuh_midi_packet_read' was not declared in this scope; did you mean 'tud_midi_packet_read'? 930 | if (tuh_midi_packet_read(dev_addr, packet)) { | ^~~~~~~~ | tud_midi_packet_read'tuh_midi_configured' was not declared in this scope; did you mean 'tuh_configure'?