Using the QWiic Shim for the Pi to talk to a Qwiic Button Red

Hello!

I’ve bought a Shim https://www.sparkfun.com/products/15794 from the Micro Center in Brooklyn NY, and the button one https://www.sparkfun.com/products/15932 directly from Sparkfun. I’ve also bought the empty button breakout board also from Sparkfun, that’s https://www.sparkfun.com/products/15931 I have not decided if it will become another illuminated one or a regular button.

Has anyone gotten the button to be seen by the Pi using this connector method? And what code was used. Of the many available, I’d prefer ordinary Python for starters. This is on the PI OS derived from Buster from just before the name change.

Incidentally I’ve gotten the regular code for the button to work via an Arduino, actually a Redboard Edge from the same place to work as advertised.

We have a Python package for the Qwiic ecosystem. I don’t think the button is implemented yet. We have a pseudo-version that was used for the Top pHAT that you can build off of (the pin connections and firmware operation was different).

That being said, it wouldn’t be hard to set up… use the smbus Python package. However, it’s not very efficient to be constantly polling the I2C bus for a button press.