Replies: 1 comment 3 replies
-
|
Make sure you set the board to |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can anyone confirm if this is working with pico2
nothing seems to run
#include "Arduino.h"
#include <Adafruit_TinyUSB.h>
#include <tusb.h>
#include <SoftwareSerial.h>
//sketch works with pico not pico2
// SoftwareSerial for debug output (RX: GPIO26, TX: GPIO27)
SoftwareSerial myDebug(26, 27); // RX is unused
void setup() {
pinMode(25, OUTPUT); // onboard LED
// Serial.begin(230400);
Serial1.setTX(0); // GPIO0
Serial1.setRX(1); // GPIO1
Serial1.begin(230400);
Serial2.setTX(4); // GPIO4
Serial2.setRX(5); // GPIO5
Serial2.begin(230400);
myDebug.begin(230400);
myDebug.println("Debug UART started");
// Start MIDI UART output
// MIDI_UART.begin(31250); // Standard MIDI baud rate
}
void loop() {
digitalWrite(25, !digitalRead(25));
Serial1.println("Serial1 "); //working
Serial2.println("Serial2 "); //working
delay(500);
}
Beta Was this translation helpful? Give feedback.
All reactions