Alternate SCK0 on Teensy 3.6 when using GUIslice?

u1550

Member
Hello Forum,
I am using the graphics library GUIslice on a 2.8" Display 320*240 with Touch http://www.lcdwiki.com/2.8inch_SPI_Module_ILI9341_SKU:MSP2807, attached to a Teensy 3.6.

I could not find much about GUIslice here.

Display and touch are using SPI port 0.
Unfortunately SCK0 shares the pin with the onboard LED. I want to keep the led for my purposes.
I have been searching for ways to change to pin 14 or 27, which should be possible on the T3.6.
I found that changing the pin must be done after configuring and starting the SPI. The GUIslice library does all this internally and I do not want to change in there.
Is there a possibility to switch to pin 14 BEFORE initializing SPI?

Thanks for your help - Richard
 
Thanks Paul,
you made my day!
I did not dare to access the SPI before initializing it (what is done somewhere inside GUIslice).
In this forum I found an entry where it was stated that changing the pin must be done after initializing SPI.
That post was back in 2012 ....
... and even worse, further down the same thread I missed the note from 2016 that simply should use "setSCK"
 
Back
Top