0

I'm using the Waveshare High-Precision AD/DA Board, and they not use the default chip select pin of RPi (GPIO# 7, 8) for SPI.

Using the pigpio python library, I want to know how to change the chip select pin to an other GPIO pin.

Thanks

1 Answer 1

0

You will need to set the selected chip select GPIO low before the SPI call and set it high afterwards. This will slow down the transfer. If it slows down too much you will need to find an alternative solution.

2
  • Yes performance loss was my fear I was hoping it would be a change in configuration. I can also set AD/DA Board chip select as input and directly wire the RPi default chip select to it. What do you think?
    – adn05
    Jun 18, 2018 at 13:21
  • If performance is an issue then if the program is running on the Pi (rather than running the script on a remote PC) then I would initially try using the Python spidev module. That will not have the pigpio Python socket overhead per SPI command. This can only be general advice. If you have a specific problem perhaps ask a new question giving more detail about what you are trying to achieve.
    – joan
    Jun 18, 2018 at 13:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.