How to change default usb serial port to uart0 on rpi pico w


#1

Hi ,

I wonder if it is possible without to much effort to change the default serial port (usb) to uart0 on pins 0 and 1 for example which is the default uart0 on the rpi pico.
I already tried this in setup :
void setup () {
Serial1.setRX(1);
Serial1.setTX(0);
Serial1.begin(9600);

But this doesn’t work , output stays on the usb uart port.
Any hints very welcome :-)

Kind regards,
Ronny


#2

Have you tried redefining Serial to Serial1 by putting this at the start of the uLisp source?

#define Serial Serial1

#3

Hi David ,

No I didn’t . I will try it this evening.
Thanks already.
Ronny


#4

Hi David ,

I can confirm it works perfectly !
Thanks again !

Regards,
Ronny


#5

Great!


#6