I was wondering if it was possible to programmatically enable/disable the serial UARTs on the Arduino Due outside of Setup()?
The reason I ask is that I am hoping to toggle on/off (via an external switch) an HC-05 module I have connected to my Serial3 TX/RX pins. So far, I haven’t had much success in calling Serial3.begin() and Serial3.end() outside of Setup() (i.e., somewhere in loop()).
Is there something I’m missing in the Arduino documentation where you can only call Serial.begin()/Serial.end() in Setup() and nowhere else?
Thanks in advance!