Colatino / PicoZoom

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

Adafruit_USBD_CDC.h error #9

Open cjnsario opened 5 months ago

cjnsario commented 5 months ago

In file included from C:\Users\CJNS\AppData\Local\Temp\arduino\sketches\23D4F6FED3E93305B261E872E3B7ED67\sketch\beta.ino.cpp:1: C:\Users\CJNS\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\cores\rp2040/Arduino.h:115:10: fatal error: Adafruit_USBD_CDC.h: No such file or directory 115 | #include "Adafruit_USBD_CDC.h" | ^~~~~ compilation terminated. exit status 1

Compilation error: exit status 1

Please help. I'm getting this error even though I used the custom Adafruit_TinyUSB_Library

cjnsario commented 5 months ago

Do you need to connect the electronic components first before uploading the code to the pico?

Colatino commented 5 months ago

You don't have to connect the components to compile or upload the code.

You may try downgrading your Arduino-pico core to version 2.5 and try again.

cjnsario commented 5 months ago

Tried installing 2.5, but no luck my friend. Still gives the same error:

In file included from C:\Users\CJNS\AppData\Local\Temp\arduino\sketches\4C227CEA44EA234455A3C8DA0790A71E\sketch\beta.ino.cpp:1: C:\Users\CJNS\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\2.5.0\cores\rp2040/Arduino.h:106:10: fatal error: Adafruit_USBD_CDC.h: No such file or directory 106 | #include "Adafruit_USBD_CDC.h" | ^~~~~ compilation terminated. exit status 1

Compilation error: exit status 1

Colatino commented 5 months ago

For some reason the IDE is not finding the Adafruit_USBD_CDC.h file but the Arduino-Pico core comes with the standard one already preinstalled, this error should not appear even if you didn't copy the custom library to the Arduino/libraries folder.

Are you certain that you copied the library to the correct folder? It is usually installed in Documents/Arduino/libraries...

If nothing else, try uninstalling the custom library and recompiling to see if another error pops up...

cjnsario commented 5 months ago

Hello. I managed to make the code work by reinstalling the Arduino IDE (1.8.18). Last question. Is there a way to make one screen to display only the delay? I only used one switch and screen and it shows the first effect on the chain. My delay usually goes 4th on the chain.

Colatino commented 5 months ago

Yes, it is possible and currently the most asked feature!

To do that you'll have to change some significant parts of the code in the ino file. Without investing too much time on it i think you'll need to:

I would be pleased if you could test it and report back if that worked