Hey,
Has anyone gotten a working example of using both Cores of the RP2040 on a Nano? I've tried following a few examples of YT and none of them seem to work.
For example, this sketch by Gary Explains, work is his video on a Pi Pico but when I try compiling the same sketch on my Nano it shows the loop() counting up and no loop1() counting down
int count0, count1;
void setup() {
Serial.begin(115200);
while (!Serial) {
delay(1); // wait for serial port to connect.
}
count0 = 0;
}
void setup1() {
count1 = 1000;
}
void loop() {
Serial.print("loop(): ");
Serial.println(count0);
count0++;
if (count0 > 1000)
count0 = 0;
delay(1000);
}
void loop1() {
Serial.print("loop1(): ");
Serial.println(count1);
count1--;
if(count1<=0)
count1 = 1000;
delay(2500);
}