Teensy 3.2 SDFat library SCK assignment from Pin 13 LED to Pin 14

Status
Not open for further replies.

kubasmyk

Member
Hi, Does anyone know where I need to put

SPI.setSCK(14);

in SDFat library to make it change pin assignment or something similar.
The library works for me at pin 13 but i need more robustness and the features in the library they look fun!

I tried to put that line in all initialization places in the library for all boards at the same time,

it compiles but it doesn't see the SD card. My understanding of the OOP maybe bit limited ;)

I'm running 1.6.7 Arduino,

Cheers.
 
hi I found this thread

https://forum.pjrc.com/threads/431-Reassigning-a-pin-(SPI-SCK)

i changed lines in SdSpiTeensy3.ccp

assigned mux to pin 13 (not sure what this means)
and enabled SCK at pin 14

just like in that thread and it seems to work.

I'm little worried that its not bullet proof.
If someone can tell us some limitations of this like if its conflicting some other teensy functionalities that maybe It would be greatly appreciated.

For example RTC, Second SPI on the bus, timers or anything like that please let us know :D

Thanks
 
Status
Not open for further replies.
Back
Top