Full Test Sketch

Once you have the TFT working, you can now continue onto a full test sketch, which will show how to read the light sensor, accelerometer, capacitive touch, and even the battery voltage!

Install Libraries

In addition to the ST7735 & GFX libraries mentioned in the previous section you'll also need...

Adafruit LIS3DH

Adafruit FreeTouch

Adafruit Unified Sensor

Adafruit NeoPixel

Adafruit SPI Flash

Whew, once all are installed. You can load up the example code, since it has two files and is kinda large, we've included the zip here:

Make sure once you've loaded it in, you have both the full_test code and the additional audio.h code

This guide was first published on Aug 15, 2018. It was last updated on 2018-12-04 15:58:47 -0500. This page (Full Test Sketch) was last updated on Aug 24, 2018.