Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pico_usb.h is mising ? #6

Open
pandeagus opened this issue Jul 18, 2023 · 14 comments
Open

pico_usb.h is mising ? #6

pandeagus opened this issue Jul 18, 2023 · 14 comments

Comments

@pandeagus
Copy link

hello colatino how i fix pico_usb.h is no such file and directory..

and can i make this midi pedal without lcd.. what code i must modify?
Untitled
modify

@Colatino
Copy link
Owner

Colatino commented Jul 18, 2023

Hey there!

About the pio_usb try installing this library https://reference.arduino.cc/reference/en/libraries/pico-pio-usb/

About the LCDs, you can just ignore both the code and the wiring.

@pandeagus
Copy link
Author

Untitled

i got error again what library i need

@Colatino
Copy link
Owner

Hey there!

You need to install these two libraries:
Adafruit GFX
Adafruit SSD1306

@kaioffabio
Copy link

Hello Colatino!
Firstly congratulations on the project!

I was having the same problems above, but now I'm having new problems, if possible I would like your help with the error below:

I have already installed all the libraries mentioned in the forum

C:\Users\Administrador\OneDrive\Guita\TAP_TEMPO_G1Four\programa_ide\beta\beta\beta.ino: In function 'void poll_midi_host_rx()':
C:\Users\Administrador\OneDrive\Guita\TAP_TEMPO_G1Four\programa_ide\beta\beta\beta.ino: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
C:\Users\Administrador\OneDrive\Guita\TAP_TEMPO_G1Four\programa_ide\beta\beta\beta.ino: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) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Administrador\OneDrive\Guita\TAP_TEMPO_G1Four\programa_ide\beta\beta\beta.ino: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
C:\Users\Administrador\OneDrive\Guita\TAP_TEMPO_G1Four\programa_ide\beta\beta\beta.ino: In function 'void midi_host_task()':
C:\Users\Administrador\OneDrive\Guita\TAP_TEMPO_G1Four\programa_ide\beta\beta\beta.ino: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
C:\Users\Administrador\OneDrive\Guita\TAP_TEMPO_G1Four\programa_ide\beta\beta\beta.ino: In function 'void send_sysex(uint8_t*, int)':
C:\Users\Administrador\OneDrive\Guita\TAP_TEMPO_G1Four\programa_ide\beta\beta\beta.ino: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
C:\Users\Administrador\OneDrive\Guita\TAP_TEMPO_G1Four\programa_ide\beta\beta\beta.ino: In function 'void tuh_midi_rx_cb(uint8_t, uint32_t)':
C:\Users\Administrador\OneDrive\Guita\TAP_TEMPO_G1Four\programa_ide\beta\beta\beta.ino: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
Multiple libraries were found for "Adafruit_TinyUSB.h"
Used: C:\Users\Administrador\OneDrive\Documentos\Arduino\libraries\Adafruit_TinyUSB_Library
Not used: C:\Users\Administrador\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.7.2\libraries\Adafruit_TinyUSB_Arduino
exit status 1

Compilation error: 'tuh_midi_configured' was not declared in this scope; did you mean 'tuh_configure'?

@kaioffabio
Copy link

err

@Colatino
Copy link
Owner

Hey @kaioffabio !

It seems that you're having the same problem as #1 , you didn't install my custom Adafruit_tinyusb library as per the instructions on the project page:

"Copy the custom Adafruit_TinyUSB_Arduino library to you Arduino/libraries folder, be careful if you already have the original one installed as it will be overwritten."

Can you try that and see if it works?

@kaioffabio
Copy link

image

Friend, I already copied and pasted it into the Arduino folder.
Can you check if I glued it to the right dough, please?

@kaioffabio
Copy link


erro

I reinstalled the modified library, now this error appears

@Colatino
Copy link
Owner

I can't reproduce the error on my machine but maybe you have newer libraries than I do, as this project.

One thing you could do to try and clarify the issue is enabling "Verbose" during compile:
image

There is a solution but only feasible if you're using the same exact hardware as I am (G1XFour, Original RPi Pico, multiplexers, oleds), following the wiring diagram and using also the same pins. The solution is downloading the already compiled .uf2 file to upload to you pico, it is available on the releases page.

If you want to try it, just press bootsel button while plugging in the USB cable, the pico should be seen as a flash drive, now you just need to drag the .uf2 file into it. If everything goes well the pico will reset and start with the new firmware.

@kaioffabio
Copy link

kaioffabio commented Mar 23, 2024

image

Friend, can you help me remotely?
If it doesn't bother you, of course...

@Colatino
Copy link
Owner

Colatino commented Mar 26, 2024

@kaioffabio It's been quite some time since I last compiled the code and the core and some libraries have been updated ever since and I think some of the errors are because of that. My version of the Adafruit TinyUSB (in its current state) library may not be compatible with new versions of the Arduino-Pico core and may need some rework that demands time (which I don't have right now).

My suggestion is to use the released compiled version of the code and see if it works (if it's a G1XFour).

Edit: I deleted your phone number from you comment

@kaioffabio
Copy link

Good morning my friend!

My doubts are about this direct loading of the already compiled program that you mentioned.
I bought the same hardware that you mention in the video, I believe this method will be ideal.
When I drag the program into the controller it would be as if it restarted, but I have no answer as to whether everything went well.
I have some questions about the connections, my display doesn't light up the screen, do I need to use an external source?

@GhermanX
Copy link

GhermanX commented Oct 8, 2024

Boa noite @kaioffabio, você conseguiu resolver o ultimo problema que citou ai?
Good evening, did you manage to solve the last problem you mentioned?

@Colatino
Copy link
Owner

Colatino commented Oct 8, 2024

Good morning my friend!

My doubts are about this direct loading of the already compiled program that you mentioned. I bought the same hardware that you mention in the video, I believe this method will be ideal. When I drag the program into the controller it would be as if it restarted, but I have no answer as to whether everything went well. I have some questions about the connections, my display doesn't light up the screen, do I need to use an external source?

The only feedback you get is when the Oled screens light up and show white a line.

The usb cable would be enough to make it show these white lines on the oleds but you should supply power by the other usb connection that is described on the diagram.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants