bboydens
Posts: 1
Joined: Wed May 03, 2017 9:59 am

sample Python code for reading out PCA9698

Wed May 03, 2017 10:44 am

Hello,

Can anyone share some Python code to read the inputs of the 40bit I²C IO expander PCA9698 ? Have plowed the internet, but couldn't find any, but for Arduino....

Thanks,
Bart

yaheath
Posts: 15
Joined: Tue Mar 28, 2017 9:58 pm

Re: sample Python code for reading out PCA9698

Thu May 04, 2017 2:01 am

FWIW, there's a linux gpio driver "gpio-pca953x" that supports a bunch of I2C gpio expanders including the pca9698. It's not in the prebuilt kernel on Raspbian, though, so you'd have to do a custom kernel build. And make a DT overlay for it. But then you can access it via /sys/class/gpio/...

Return to “Interfacing (DSI, CSI, I2C, etc.)”