# Newbie GFX Hat query

**URL:** <https://forums.pimoroni.com/t/newbie-gfx-hat-query/12679>\
**Category:** Support\
**Created:** [January 7, 2020, 2:43pm UTC](https://forums.pimoroni.com/t/newbie-gfx-hat-query/12679 "2020-01-07T14:43:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![BertW](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@BertW](https://forums.pimoroni.com/u/BertW)\
**Post date:** [January 7, 2020, 2:43pm UTC](https://forums.pimoroni.com/t/newbie-gfx-hat-query/12679/1 "2020-01-07T14:43:45Z")

</div>

Hi all,

I am just about to purchase a GFX hat for my Pi Zero and wondered if anybody knew how many GPIO pins were left available? I see the HAT takes all 40 pins, but I assume one or two GPIO are available for my use?

Thanks ,  
B

---

<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:** [January 7, 2020, 3:34pm UTC](https://forums.pimoroni.com/t/newbie-gfx-hat-query/12679/2 "2020-01-07T15:34:59Z")

</div>

The Pinout showing what is used is here.

> **[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

  
It looks like it uses i2c and SPI.

---

<div class="post-metadata">

**Author:** ![BertW](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@BertW](https://forums.pimoroni.com/u/BertW)\
**Post date:** [January 7, 2020, 4:59pm UTC](https://forums.pimoroni.com/t/newbie-gfx-hat-query/12679/3 "2020-01-07T16:59:06Z")

</div>

Amazing thanks for your help.

---

<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:** [January 7, 2020, 7:40pm UTC](https://forums.pimoroni.com/t/newbie-gfx-hat-query/12679/4 "2020-01-07T19:40:59Z")

</div>

And i2c is a shared bus, you can have multiple device on i2c as long as no two devices share the same i2c address.  
I’ve used Perma Proto Hats on a few projects to get access to the GPIO pins.

> **[Adafruit Perma-Proto HAT for Pi Mini Kit – Pimoroni Store](https://shop.pimoroni.com/products/adafruit-perma-proto-hat-for-pi-mini-kit?variant=1038451613)**
>
> Design your own Pi HAT, attach custom circuitry and otherwise dress your Pi 3, 2, A+ or B+ with this jaunty prototyping HAT kit.

  
I mate them with the 11mm stacking headers and stack them between my Pi and Hat.  

> **[2x20 pin Female GPIO Header for Raspberry Pi – Pimoroni Store](https://shop.pimoroni.com/products/2x20-pin-gpio-header-for-raspberry-pi-2-b-a?variant=1132812269)**
>
> Connect your project directly to your Pi with these 2x20 pin GPIO headers!

  
If you go that route I’d get this standoff kit so you can screw one standoff into the other with the Proto Hat between them.  

> **[Premium Pi standoff selection – Pimoroni Store](https://shop.pimoroni.com/products/premium-pi-standoff-selection)**
>
> Specifically selected for Pi HATs and pHATs this standoff selection also includes male to female standoffs to allow you to stack your boards securely

---

<div class="post-metadata">

**Author:** ![BertW](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@BertW](https://forums.pimoroni.com/u/BertW)\
**Post date:** [January 9, 2020, 4:08pm UTC](https://forums.pimoroni.com/t/newbie-gfx-hat-query/12679/5 "2020-01-09T16:08:02Z")

</div>

Thanks. Ordered and the hat arrived today! Quick question around the libraries/sw support. I have tried to use the pimoroni product installer (curl -sS [https://get.pimoroni.com/gfxhat](https://get.pimoroni.com/gfxhat) | bash). The script runs for a while but then throws a bunch of errors - any ideas?

The repository ‘[http://robotooling.com/debian](http://robotooling.com/debian) ./ Release’ does not have a Release file.  
E: Some index files failed to download. They have been ignored, or old ones used instead.  
Apt failed to update indexes!

---

<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:** [January 9, 2020, 4:34pm UTC](https://forums.pimoroni.com/t/newbie-gfx-hat-query/12679/6 "2020-01-09T16:34:29Z")

</div>

Try the manual install and see what happens.  
Manual install:  
Library install for Python 3:

`sudo pip3 install gfxhat`

Library install for Python 2:

`sudo pip2 install gfxhat`

---

<div class="post-metadata">

**Author:** ![BertW](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@BertW](https://forums.pimoroni.com/u/BertW)\
**Post date:** [January 11, 2020, 4:17pm UTC](https://forums.pimoroni.com/t/newbie-gfx-hat-query/12679/7 "2020-01-11T16:17:57Z")

</div>

Perfect! Thanks. Once i had enabled my SPI and I2C everything works!

---

<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:** [January 11, 2020, 6:45pm UTC](https://forums.pimoroni.com/t/newbie-gfx-hat-query/12679/8 "2020-01-11T18:45:18Z")

</div>

I meant to mention to check to make sure they were turned on, ops.  
The one line installer is supposed to do that for you, but you have to do it manually yourself if you do the manual install methode.
