Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adafruit RA8875 sclk pin #15

Open
wb0wuq opened this issue Jan 10, 2019 · 4 comments
Open

Adafruit RA8875 sclk pin #15

wb0wuq opened this issue Jan 10, 2019 · 4 comments

Comments

@wb0wuq
Copy link

wb0wuq commented Jan 10, 2019

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

@ladyada
Copy link
Member

ladyada commented Jan 10, 2019

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 :)

@makermelissa
Copy link
Contributor

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.

@ladyada
Copy link
Member

ladyada commented May 18, 2019

we'd pass in an &SPIDevice for hardware SPI

@makermelissa
Copy link
Contributor

Oh yeah, that makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants