This is an Arduino driver for the Pimoroni GFX HAT.
- Install the Adafruit_GFX and Pimoroni SN3218 libraries.
- Download the GFX HAT library here.
- In the Arduino IDE, install using Sketch → Include Library → Add .ZIP Library... For more details, see the Arduino documentation here.
Examples are provided demonstrating basic usage of the LCD, touch buttons and backlight. They are available from the File → Examples menu under Examples from Custom Libraries.
Both 5V and 3.3V power are required. Connect SDA, SCL, MOSI and SCLK to their corresponding pins on your microcontroller board. The LCD requires three more digital I/O pins. The examples assume they are connected as follows:
GFX HAT pin | Arduino pin |
---|---|
LCD Chip Select | 0 |
LCD Reset | 1 |
LCD Data/Command | 2 |