Open wb0wuq opened 5 years ago
we must use hardware SPI - if your board uses that pin for the SPI port, then that's the only pin we can use! if you have changes you'd like to make, please submit a pull request :)
I'm not sure if this is doable on the Teensy 3.2, but it appears to have alternate hardware SPI pins on the Teensy 3.5 and 3.6. I'll need to look into what is needed to make use of those.
we'd pass in an &SPIDevice for hardware SPI
Oh yeah, that makes sense.
I posted this on the Adafruit Forum and was referred here:
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.
I have used other RA8875 libraries that can have the sclk pin changed. Is that possible to add it to this library. Thanks Tim Hatch