0

Adafruit RA8875 sclk pin
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit RA8875 sclk pin

by Tim_wb0wuq on Wed Jan 09, 2019 7:40 pm

I have an Adafruit RA8875 (1590) and the 7.0" TFT screen (2353). I am connecting it to a Teensy 3.2. Following examples from the Adafruit libraries the hardware connections are:

// Library only supports hardware SPI at this time
// Connect SCLK to UNO Digital #13 (Hardware SPI clock)
// Connect MISO to UNO Digital #12 (Hardware SPI MISO)
// Connect MOSI to UNO Digital #11 (Hardware SPI MOSI)
#define RA8875_INT 3
#define RA8875_CS 10
#define RA8875_RESET 9

However the sketch I am going to write uses Pin #13 for a Arduino FreqCount sketch input. Is there anyway to change the SPI clock Pin? I have looked at the Adafruit RA8875 libraries and don't see any place to change the Pin. Anyone out there that can help?

Thanks
Tim

Tim_wb0wuq
 
Posts: 3
Joined: Wed Jan 09, 2019 7:19 pm

Re: Adafruit RA8875 sclk pin

by adafruit_support_carter on Wed Jan 09, 2019 7:49 pm

It looks like the library is setup to only use hardware SPI:
https://github.com/adafruit/Adafruit_RA ... 8875.h#L68
So you can't change the clock pin.

If you want, file an issue in the repo to allow for software SPI. Maybe there's a reason it wasn't added. But you can at least raise the question there:
https://github.com/adafruit/Adafruit_RA8875/issues

adafruit_support_carter
 
Posts: 8560
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.