Adafruit Mini TFT with Joystick Featherwing

Similar documents
Adafruit Mini TFT " 160x80

Adafruit 2.4" TFT FeatherWing

Adafruit 3.5" 480x320 TFT FeatherWing

Adafruit 3.5" 480x320 TFT FeatherWing

Monochrome OLED Breakouts

1.8" TFT Display Breakout and Shield

Adafruit MPRLS Ported Pressure Sensor Breakout

Adafruit 1.27" and 1.5" Color OLED Breakout Board

0.96" mini Color OLED

Adafruit 8x16 LED Matrix FeatherWing

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout

Joy Featherwing. Created by Dean Miller. Last updated on :03:07 PM UTC

i2c/spi LCD Backpack Created by lady ada Last updated on :11:04 PM UTC

IS31FL x9 Charlieplexed PWM LED Driver

Adafruit eink Display Breakouts

Adafruit I2C FRAM Breakout

Adafruit 8x16 LED Matrix FeatherWing

Adafruit AM2320 Sensor

Adafruit Si7021 Temperature + Humidity Sensor

Adafruit DRV2605 Haptic Controller Breakout

Adafruit ATWINC1500 WiFi Breakout

Adafruit DRV2605 Haptic Controller Breakout

Adafruit AS channel Visible Light Sensor

Adafruit WINC1500 WiFi Shield for Arduino

MCP Bit DAC Tutorial

Adafruit SGP30 TVOC/eCO2 Gas Sensor

Adafruit MMA8451 Accelerometer Breakout

Adafruit 7-Segment LED FeatherWings

Introducing Adafruit Trellis

Adafruit MMA8451 Accelerometer Breakout

Adafruit Si5351 Clock Generator Breakout

Adafruit APDS9960 breakout

MCP Bit DAC Tutorial

Adafruit AMG8833 8x8 Thermal Camera Sensor

Adafruit ATWINC1500 WiFi Breakout

Adafruit HUZZAH32 - ESP32 Feather

14-Segment Alpha-numeric LED FeatherWing

Adafruit Color Sensors

Adafruit ATWINC1500 WiFi Breakout

Adafruit PCF8523 Real Time Clock

Introducing Circuit Playground

Adafruit LIS3DH Triple-Axis Accelerometer Breakout

Adafruit IO Basics: Servo

FeatherWing Proto, Doubler and Tripler

Adafruit LED Backpacks

Adafruit MMA8451 Accelerometer Breakout

Adafruit Feather 32u4 Basic Proto

Adafruit CCS811 Air Quality Sensor

Adafruit TPL5110 Power Timer Breakout

Adafruit TPL5111 Reset Enable Timer Breakout

Adafruit LED Backpacks

Adafruit DS3231 Precision RTC Breakout

Introducing Circuit Playground

FeatherWing Proto and Doubler

TSL2561 Luminosity Sensor

Adafruit MAX31865 RTD PT100 or PT1000 Amplifier

NeoPixie Dust Bag with Circuit Playground Express

Adafruit GPIO Expander Bonnet for Raspberry Pi Created by Kattni Rembor. Last updated on :12:47 PM UTC

Neon LED Signs. Created by John Park. Last updated on :11:09 PM UTC

Adafruit IO Basics: Digital Output

Naughty or Nice Machine

RGB LCD Shield. Created by lady ada. Last updated on :48:40 PM UTC

Adafruit Capacitive Touch Sensor Breakouts

Adafruit Pi Cobbler Kit

Adafruit PowerBoost 500 Shield

MLX90393 Wide-Range 3-Axis Magnetometer

Adafruit IO Basics: ESP Arduino

Adafruit GPS Hat in Windows IoT Core

Adafruit IO Basics: Color

Adafruit IO Basics: Temperature & Humidity

NeoMatrix 8x8 Word Clock

Coffee Detonator: The TNT Plunger Grinder

Data Logging with Feather and CircuitPython

PyPortal NeoPixel Color Picker Created by Kattni Rembor. Last updated on :42:41 PM UTC

Adafruit IO Basics: Digital Input

Adafruit Prototyping Pi Plate. Created by Ladyada

Feather Weather Lamp. Created by Ruiz Brothers. Last updated on :54:26 PM UTC

Adafruit IO Basics: Analog Input

Micro:bit with Arduino

Arduino Lesson 6. Digital Inputs

Using IFTTT with Adafruit IO to Make an IoT Door Detector

Sino:bit with Arduino

Getting Started with FLORA

Adafruit TSL2591 High Dynamic Range Digital Light Sensor

Toy Car Speed Timer. Created by Kirby Griese. Last updated on :13:49 PM UTC

Prophet 600 GliGli mod

Adafruit LED Sequins. Created by Becky Stern. Last updated on :02:00 AM UTC

Adafruit Flora Bluefruit LE

Flora Wearable GPS. Created by Becky Stern. Last updated on :32:36 PM UTC

Circuit Playground Express Laser Tag

Circuit Playground Digital Input

Mad Science Test Tube Rack

3D Printed Case for Adafruit Feather

Adafruit Stepper + DC Motor FeatherWing

LED Lightbox. Created by Sam Clippinger. Last updated on :50:00 AM UTC

Trellis 3D Printed Enclosure

NeoPixel Bike Light. Created by Ruiz Brothers. Last updated on :43:46 PM UTC

Getting Started with FLORA

FLORA TV-B-Gone. Created by Becky Stern. Last updated on :32:57 PM UTC

Transcription:

Adafruit Mini TFT with Joystick Featherwing Created by lady ada Last updated on 2018-08-24 04:45:05 AM UTC

Guide Contents Guide Contents Overview Pinouts Color TFT Display Buttons and Joystick seesaw Chip Power and Reset Arduino Code Install Arduino Libraries Adafruit GFX Adafruit ST7735 and ST7789 Adafruit seesaw Graphics Test How to use Adafruit GFX More about seesaw 2 3 7 7 8 8 8 10 10 10 10 10 11 13 14 Adafruit Industries https://learn.adafruit.com/adafruit-mini-tft-featherwing Page 2 of 14

Overview Add a dazzling color display to your Feather project with this Adafruit Mini Color TFT with Joystick FeatherWing. It has so much stuff going on, we could not fit any more parts on the PCB! There's a 0.96" 160x80 Color TFT Display with 16-bit full color capability. And, so you can make a proper UI we added a 5-way navigation switch and two push buttons. The joystick can go left, right, up, down and 'in' for selection. Two buttons on the side can change modes or whatever you like. Adafruit Industries https://learn.adafruit.com/adafruit-mini-tft-featherwing Page 3 of 14

Thanks to seesaw the 7 user interface switches are managed over I2C so you don't need any extra GPIO pins to spare, this display will even work on low-pin-availability Feathers like the ESP8266. All you need is the standard hardware SPI, I2C and two GPIO for TFT control. Heck, even the TFT reset pin and backlight is controlled by seesaw, all over I2C! Adafruit Industries https://learn.adafruit.com/adafruit-mini-tft-featherwing Page 4 of 14

This lovely little display breakout is a great way to add a small, colorful and bright display to any Feather project, and it works with all of our Feathers. Since the display uses 4-wire SPI to communicate and has its own pixel-addressable frame buffer, it can be used with every kind of microcontroller. Even a very small one with low memory and few pins available. Tested working with all Feather boards. Check out our range of Feather boards here. (https://adafru.it/l7b) Adafruit Industries https://learn.adafruit.com/adafruit-mini-tft-featherwing Page 5 of 14

Adafruit Industries https://learn.adafruit.com/adafruit-mini-tft-featherwing Page 6 of 14

Pinouts Color TFT Display The color TFT is what you're here for! This 0.96" diagonal display has surprisingly high resolution, 80x160 16-bit color pixels inside. The display is in the middle of the Wing and uses 4 Wing pins and then 2 seesaw pins: SPI SCK - SPI data clock out from Feather to display SPI MOSI - SPI data transmit from Feather to display SPI CS - Chip Select pin, on the first digital pin to the left of SCL SPI DC - Data/Command select, on the second digital pin to the left of SCL SCK and MOSI are fixed to the default SPI pins on each Feather. You can change the CS and DC pins if you'd like! On the bottom of the Wing there are solder jumpers, cut the default CS & DC and solder them to any two pins you like. We alternate so you have a few options. The remaining two pins for controlling the TFT are handled by seesaw (our I2C converter chip): TFT Reset - we only need to toggle this pin once at the beginning of running a program, and it can happen slowly so we use seesaw to manage this pin Adafruit Industries https://learn.adafruit.com/adafruit-mini-tft-featherwing Page 7 of 14

TFT Backlight - not all Feathers have PWM and also most of the time you don't need to do a lot with the backlight so we connect it to a seesaw PWM pin so you can dim/brighten as you desire Buttons and Joystick In addition to a pretty display, now you have a little user interface you can build. You get 7 total buttons Button A Button B 5-way Navigation Joystick - Up/Down/Left/Right/Select Since many GPIO would be needed for so many buttons we use seesaw on I2C to manage reading all the buttons. seesaw Chip seesaw is on I2C, it is a pre-programmed ATSAMD09 chip which will listen to commands over I2C and read buttons, dim the backlight and toggle the display reset line. Power and Reset In addition, there is a reset button that will reset both Feather and Wing, and to power the wing we connect to the GND/3.3V power pins supplied by the Feather power supply. Adafruit Industries https://learn.adafruit.com/adafruit-mini-tft-featherwing Page 8 of 14

Adafruit Industries https://learn.adafruit.com/adafruit-mini-tft-featherwing Page 9 of 14

Arduino Code OK you are now ready to use your FeatherWing! Install Arduino Libraries Lets begin by installing all the libraries we need. Open up the library manager in Arduino IDE Search for and install the Following libraries: Adafruit GFX Adafruit ST7735 and ST7789 Adafruit seesaw Once you have installed these, restart the Arduino IDE Adafruit Industries https://learn.adafruit.com/adafruit-mini-tft-featherwing Page 10 of 14

Graphics Test Start by opening up the minitftwing -> graphicstest under the Adafruit ST7735/7789 library: And upload it to your Feather! You'll see a graphics test program run, showing drawing lines, text, rectangles, circles, triangles, etc. We also have a demo of the joystick that is simpler, and shows basic reading of the buttons for making interactive interfaces under the basic example Adafruit Industries https://learn.adafruit.com/adafruit-mini-tft-featherwing Page 11 of 14

Adafruit Industries https://learn.adafruit.com/adafruit-mini-tft-featherwing Page 12 of 14

How to use Adafruit GFX How to use Adafruit GFX (https://adafru.it/dol) Adafruit Industries https://learn.adafruit.com/adafruit-mini-tft-featherwing Page 13 of 14

More about seesaw More about seesaw (https://adafru.it/cmk) Adafruit Industries Last Updated: 2018-08-24 04:45:04 AM UTC Page 14 of 14