It sounds a bit like a stupid question but let me explain the background.
Normally I do not set any pinmode like
pinMode(0, INPUT);
for the both pins 0 (RX receiver, means input) and 1 (TX transmitter means output).
I'm using a GPRSBee on the hardware serial (pin 0 and 1) of the Seeeduino Stalker (Arduino Pro Mini compatible) with this lib GitHub - SodaqMoja/GPRSbee: Arduino library for GPRSbee . So I don't know if there is some pinMode set by the lib. With a quick search I did not find an explicitly set pinmode.
With the new Stalker board version 3.1, there is an advice to save power with
pinMode(0, INPUT);
pinMode(1, INPUT);
right before going deep sleeping.
Please set D0,D1 as input before going into sleep mode
So my question is now: Do I have to "switch back" right after wake up? and what do I have to set? Is this correct?
pinMode(0, INPUT);
pinMode(1, OUTPUT);
I did some test without this last step/code and the GPRSbee is still working. But it seems to be a bit slower than before. What is the "clean" way here?