pimoroni / inky

Combined library for V2/V3 Inky pHAT and Inky wHAT.
https://shop.pimoroni.com/?q=inky
MIT License
594 stars 122 forks source link

SPI mode for the Inky #62

Closed Axel-Jacobsen closed 1 year ago

Axel-Jacobsen commented 4 years ago

Hello!

I am looking to use an Inky as well as another device on SPI. Looking through your code, you use SPI bus 0, which for the Pi, only allows for SPI modes 1 and 3 (i.e. CPOL, CPHA = 0,1 or 1,1).

Is your device able to operate on bus 1, which only allows for SPI modes 0 and 2 (i.e. CPOL, CPHA = 0,0 or 1,0)?

Cheers!

Gadgetoid commented 4 years ago

I don't actually know- although it's easy enough to bitbang SPI on any pins, making the modes supported by the hardware somewhat academic.