# Gfxhat LCD and Raspberry

**URL:** <https://forums.pimoroni.com/t/gfxhat-lcd-and-raspberry/11118>\
**Category:** Raspberry Pi\
**Created:** [July 28, 2019, 11:41pm UTC](https://forums.pimoroni.com/t/gfxhat-lcd-and-raspberry/11118 "2019-07-28T23:41:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![domoticity](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@domoticity](https://forums.pimoroni.com/u/domoticity)\
**Post date:** [July 28, 2019, 11:41pm UTC](https://forums.pimoroni.com/t/gfxhat-lcd-and-raspberry/11118/1 "2019-07-28T23:41:49Z")

</div>

Hy.  
I am a Newby and i need help :).

I would like to use the Buttons of the GFXHAT, to launch Python scripts.

How to launch a script stored on my Pi?

I was thinking it was like the tutorial about push Button,  
work with the good pinout,  
but when i have seen the Diagramm,  
i dudn’t understand on which pinout i should work.  
(which pinout use thé button of the LCD?)

And if it’s with i/o system.

Can somebody help me please?  
Thank by advance.  
😀

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [July 29, 2019, 9:41am UTC](https://forums.pimoroni.com/t/gfxhat-lcd-and-raspberry/11118/2 "2019-07-29T09:41:10Z")

</div>

Those buttons are capacitive touch which work via i2c and the CAP1166 chip.

> **[GFX HAT at Raspberry Pi GPIO Pinout](https://pinout.xyz/pinout/gfx_hat#)**
>
> A 128x64 graphic LCD with a 6-zone RGB backlight and 6 touch buttons

  
Have a look at the Library for the GFX HAT Cap1166 touch controller. Here,  
[http://docs.pimoroni.com/gfxhat/](http://docs.pimoroni.com/gfxhat/)
