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

**URL:** <https://community.sparkfun.com/t/using-the-qwiic-shim-for-the-pi-to-talk-to-a-qwiic-button-red/40013>\
**Category:** Qwiic System\
**Tags:** qwiic\
**Created:** [July 12, 2020, 12:35am UTC](https://community.sparkfun.com/t/using-the-qwiic-shim-for-the-pi-to-talk-to-a-qwiic-button-red/40013 "2020-07-12T00:35:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![doctorwho8](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/doctorwho8/32/3604_2.png) [@doctorwho8](https://community.sparkfun.com/u/doctorwho8)\
**Post date:** [July 12, 2020, 12:35am UTC](https://community.sparkfun.com/t/using-the-qwiic-shim-for-the-pi-to-talk-to-a-qwiic-button-red/40013/1 "2020-07-12T00:35:24Z")

</div>

Hello!

I’ve bought a Shim [https://www.sparkfun.com/products/15794](https://www.sparkfun.com/products/15794) from the Micro Center in Brooklyn NY, and the button one [https://www.sparkfun.com/products/15932](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](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.

---

<div class="post-metadata">

**Author:** ![santaimpersonator](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/santaimpersonator/32/6108_2.png) [@santaimpersonator](https://community.sparkfun.com/u/santaimpersonator)\
**Post date:** [September 11, 2020, 2:55pm UTC](https://community.sparkfun.com/t/using-the-qwiic-shim-for-the-pi-to-talk-to-a-qwiic-button-red/40013/2 "2020-09-11T14:55:56Z")

</div>

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.
