Colatino / PicoZoom

A MIDI controller based on the Raspberry pi Pico for Zoom pedals
22 stars 9 forks source link

pico_usb.h is mising ? #6

Open pandeagus opened 1 year ago

pandeagus commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Untitled

i got error again what library i need

Colatino commented 1 year ago

Hey there!

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

kaioffabio commented 8 months ago

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 commented 8 months ago

err

Colatino commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

erro

I reinstalled the modified library, now this error appears

Colatino commented 8 months ago

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 commented 8 months ago

image

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

Colatino commented 7 months ago

@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 commented 7 months ago

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 commented 1 month ago

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 commented 1 month ago

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.