print on UART0 #14014
Answered
by
robert-hh
CrabbyPete
asked this question in
RP2040 / Pico
print on UART0
#14014
-
I am using Thonny to program my Raspberry Pi Pico in python, and I have print statements to monitor the code. Once its complete I want to be able to connect a battery to the pico and monitor the output of those print statements on UART0. I have and FTDI cable on UART0, but I don't see any output. Is the USB port still active? How can I make the print statements go to the UART0 pins? |
Beta Was this translation helpful? Give feedback.
Answered by
robert-hh
Mar 3, 2024
Replies: 1 comment 1 reply
-
You can use os.dupterm() to replicate the standard output to a stream device, like UART. e.g.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
CrabbyPete
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use os.dupterm() to replicate the standard output to a stream device, like UART. e.g.