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

Changing the SPI pinouts #4

Open
ravipurigen opened this issue Apr 19, 2017 · 4 comments
Open

Changing the SPI pinouts #4

ravipurigen opened this issue Apr 19, 2017 · 4 comments

Comments

@ravipurigen
Copy link

Is it possible to change the SPI pinouts defined in tlc5947.py to use the following instead ? Seems like it is hardcoded in the bmc2835_spi_begin() function defined in bcm2835.c
GPIO38 - SPI0_MOSI
GPIO39 - SPI0_SCLK
GPIO36 - SPI0_CE0_N

@wrobell
Copy link
Owner

wrobell commented Apr 21, 2017

Is this for Raspberry Pi?

@ravipurigen
Copy link
Author

Yes, the bcm2835 library seems to have hardcoded the SPI pins to use 7-11 in, so I am guessing I will have to rebuild that one and there's no modification needed on the fpulse side, right ?

@wrobell
Copy link
Owner

wrobell commented Apr 21, 2017

Is it possible to assign different GPIOs than the default one to SPI in Raspberry Pi?

@ravipurigen
Copy link
Author

Yes, line number 1273 at https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README
I ran the spidev_test.c to confirm it and the default SPI pins gets disabled after adding that line to the /boot/config.txt

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

2 participants