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

How to change Chip Select/NSS #43

Open
joejackson3 opened this issue Jun 17, 2021 · 2 comments
Open

How to change Chip Select/NSS #43

joejackson3 opened this issue Jun 17, 2021 · 2 comments

Comments

@joejackson3
Copy link

Hello,
I'm trying to connect an RFM69 to a Raspberry Zero. It already is connected to an ePaper Hat, which uses the same SPI pins.
I appreciate that the Interrupt pin can be changed
"You can change the interrupt pin (GPIO24) in the class init."
but how can I change the Chip Select (NSS/CE) pin to make these two SPI modules work?
Thank you.

@etrombly
Copy link
Owner

etrombly commented Jun 18, 2021

The chip select is the same as device in the rfm69 init:

class RFM69(object):
    def __init__(self, freqBand, nodeID, networkID, isRFM69HW = False, intPin = 18, rstPin = 29, spiBus = 0, spiDevice = 0):

so set spiDevice to the CE you would like to use. Here's an example pinout https://pinout.xyz/pinout/spi you can set device to 0 or 1 which would be pins 24 or 26.

@joejackson3
Copy link
Author

Thank you very much for the suggestion. Will try this soon.

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