# C driver for QW/ST Pad available?

**URL:** <https://forums.pimoroni.com/t/c-driver-for-qw-st-pad-available/28775>\
**Category:** Support\
**Created:** [March 17, 2026, 9:28am UTC](https://forums.pimoroni.com/t/c-driver-for-qw-st-pad-available/28775 "2026-03-17T09:28:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveS](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@SteveS](https://forums.pimoroni.com/u/SteveS)\
**Post date:** [March 17, 2026, 9:28am UTC](https://forums.pimoroni.com/t/c-driver-for-qw-st-pad-available/28775/1 "2026-03-17T09:28:17Z")

</div>

I’m trying to use a pad from C rather than MicroPython; I want to extend the number of buttons available on a Display Pack 2.8, and this seemed an ideal way to do it.

However, I didn’t check first to see if there was an available driver in C as there is for the Display Pack itself.

I have tried ‘converting’ the MP library (which I have done with other code before), but am not getting very far. Is there other code for the Pico to drive the TCA9995, as I don’t seem to be able to initialise it correctly, and whatever value I write to the LED bits (whether 0 or 1) doesn’t change their state, nor does trying to read the button values ever give me any changed values.

I must be doing something wrong, I just can’t see what, and have also asked for advice on the Pi Pico SDK forum.

Thanks,

Steve

---

<div class="post-metadata">

**Author:** ![ZodiusInfuser](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/zodiusinfuser/32/10546_2.png) [@ZodiusInfuser](https://forums.pimoroni.com/u/ZodiusInfuser)\
**Post date:** [March 23, 2026, 1:23pm UTC](https://forums.pimoroni.com/t/c-driver-for-qw-st-pad-available/28775/2 "2026-03-23T13:23:29Z")

</div>

Hi.

There’s not a specific C driver for the QwstPad itself, however do we use the TCA9995 for our Yukon product, which has some C code for that you could delve into.

> **[pimoroni-pico/drivers/tca9555 at feature/yukon · pimoroni/pimoroni-pico](https://github.com/pimoroni/pimoroni-pico/tree/feature/yukon/drivers/tca9555)**
>
> Libraries and examples to support Pimoroni Pico add-ons in C++ and MicroPython. - pimoroni/pimoroni-pico

---

<div class="post-metadata">

**Author:** ![SteveS](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@SteveS](https://forums.pimoroni.com/u/SteveS)\
**Post date:** [March 23, 2026, 4:29pm UTC](https://forums.pimoroni.com/t/c-driver-for-qw-st-pad-available/28775/3 "2026-03-23T16:29:24Z")

</div>

So there is. By looking for ‘9555’ in the source folders, I came across this. Took me a couple of read-throughs of the datasheet and the QwstPad schematic, but I have working code now.

I think my biggest issue was working out which order PORT0 and PORT1 should be, once I got that right it was relatively straightforward. The assignments to the bits of #0 and #1 seemed slightly strange, but without seeing the PCB layout in all it’s glory, I would assume there are good (or fun) reasons for it.

Main thing, I can see when buttons are pressed/released and turn LEDs on and off, so I’m a happy bunny. Of course, if the Pico Display range had more buttons to start with … :)

However, they, and the QwstPad are great products.
