Open cjnsario opened 5 months ago
Do you need to connect the electronic components first before uploading the code to the pico?
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.
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
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...
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.
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:
Change the NUM_SLOTS and NUM_PEDALS constant to 1 in the g1xfour.h
Change the parse_patch function to only store an effect if it is a delay (I already check for this in these lines but you'll have to figure out how to do this before), maybe something like this will do:
if (index > -1) {
current_patch.delay[i] = false;
for (int j = 0; j < N_DELAYS; j++) {
if (delay_ids[j] == id) {
current_patch.delay[i] = true;
break;
}
}
// Check if it is a delay and stores the correct delay slot to manipulate it
if (current_patch.delay[i]){
current_patch.effects[i] = effects[index];
current_patch.states[i] = state;
current_patch.slots[i] = current_patch.cur_slot;
break;
}
current_patch.cur_slot += effects[index].nslots;
}
I have not tested this but i think this is the way to go. If it works you'll be able to toggle the delay on/off and also change the tempo (and the second tempo if it is that kind of effect).
I would be pleased if you could test it and report back if that worked
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 1Compilation error: exit status 1
Please help. I'm getting this error even though I used the custom Adafruit_TinyUSB_Library