I have serial devices connected to both serial1 and serial2 on my Pico. I need to keep the console output off of these when USB is disconnected and pico running on external power.
The desired behavior is to have the console on USB when USB is connected, and if no USB, console output is discarded. Am I missing some way to achieve this?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I have serial devices connected to both serial1 and serial2 on my Pico. I need to keep the console output off of these when USB is disconnected and pico running on external power.
The desired behavior is to have the console on USB when USB is connected, and if no USB, console output is discarded. Am I missing some way to achieve this?