LC uC Pin 13 aka PTE29 as GPIO Output High / Low

Status
Not open for further replies.
Anyone know how to use PTE29 or uC pinout #13 on the Teensy-LC? Just as a simple output digitalwrite type High or Low...
 
Sweet. Thanks.

I think I got it. Was seemingly easiest to "re-map" an unused pin from the same port (port E) to the PTE29 pin.
For me, it was PTE30 to PTE29.

I changed 2 things in core_pins.h and I believe it worked.
Changed #define CORE_PIN26_BIT 30
to #define CORE_PIN26_BIT 29

Changed #define CORE_PIN26_CONFIG PORTE_PCR30
to #define CORE_PIN26_CONFIG PORTE_PCR29

And now PTE29 can be accessed via the name '26' , like digitalWriteFast(26, 1);
 
Status
Not open for further replies.
Back
Top