defragster
Senior Member+
Teensy 3.2 card back shows Pins 26 as RX2 and 31 as TX2 for (gray) alternate pins.
I don't see a begin() or other functional option to specify these alternate pins at runtime to change from pin 9 as RX2 and pin 10 as TX2.
Did I miss a function to do this - or a compile time flag?
A BING search found this post, is this the right answer ( as edited for Serial2 ) ?
Except I'm unsure about PORT_PCR_MUX(3) covering those pins?
do Serial2.begin(9600): then::
After Serial2.begin(), pins 9 and 10 will be in use.
This should disable those pins:
Then to activate the alternate pins, try this:
I don't see a begin() or other functional option to specify these alternate pins at runtime to change from pin 9 as RX2 and pin 10 as TX2.
Did I miss a function to do this - or a compile time flag?
A BING search found this post, is this the right answer ( as edited for Serial2 ) ?
Except I'm unsure about PORT_PCR_MUX(3) covering those pins?
do Serial2.begin(9600): then::
After Serial1.begin(), pins 0 and 1 will be in use.
After Serial2.begin(), pins 9 and 10 will be in use.
This should disable those pins:
Code:
CORE_PIN9_CONFIG = 0;
CORE_PIN10_CONFIG = 0;
Then to activate the alternate pins, try this:
Code:
CORE_PIN26_CONFIG = PORT_PCR_PE | PORT_PCR_PS | PORT_PCR_PFE | [B]PORT_PCR_MUX(3)[/B];
CORE_PIN31_CONFIG = PORT_PCR_DSE | PORT_PCR_SRE | [B]PORT_PCR_MUX(3)[/B];