Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Adafruit 2.4in TFT FeatherWing: Examples, Pinouts, and Specs

Image of Adafruit 2.4in TFT FeatherWingDesign with Adafruit 2.4in TFT FeatherWing in Cirkit Designer

Introduction

The Adafruit 2.4in TFT FeatherWing is a versatile and vibrant display module that features a 2.4-inch color TFT LCD screen with a resolution of 320x240 pixels. This display is capable of showing detailed graphics and text, making it an excellent choice for a wide range of applications, including handheld instruments, user interfaces, and dynamic visual outputs. Its compatibility with the Adafruit Feather ecosystem allows for quick integration and prototyping with a variety of microcontrollers.

Explore Projects Built with Adafruit 2.4in TFT FeatherWing

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Arduino Mega 2560 Controlled TFT Touchscreen Interface: A project utilizing Adafruit 2.4in TFT FeatherWing in a practical application
Arduino Mega 2560 Controlled TFT Touchscreen Interface

This circuit connects an Arduino Mega 2560 microcontroller to a 3.5-inch 480x320 TFT LCD display. The Arduino provides power, ground, and digital signals to control the display, including data lines for pixel information and control lines for reset, write, and command/data selection. The embedded code initializes the display and configures the Arduino's pins for communication, likely to create a user interface or visual output for a project.

Open Project in Cirkit Designer
Image of ESP32-Based Vibration Feedback System with Quad Alphanumeric Display and ADXL343 Accelerometer: A project utilizing Adafruit 2.4in TFT FeatherWing in a practical application
ESP32-Based Vibration Feedback System with Quad Alphanumeric Display and ADXL343 Accelerometer

This circuit features an Adafruit HUZZAH32 ESP32 Feather board as the central microcontroller, which is connected to an Adafruit Quad AlphaNumeric Featherwing display and an Adafruit ADXL343 accelerometer via I2C communication (SCL and SDA lines). The ESP32 controls a vibration motor connected to one of its GPIO pins (A5_IO4) and shares a common power supply (3.3V) and ground (GND) with the other components. The purpose of this circuit is likely to read acceleration data, display information on the alphanumeric display, and provide haptic feedback through the vibration motor.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Name Description
1 GND Ground connection
2 3V 3.3V power supply
3 RST Reset pin
4 CS Chip Select for the TFT
5 SCK SPI Clock
6 MOSI SPI Master Out Slave In
7 MISO SPI Master In Slave Out (not used)
8 DC Data/Command control pin
9 BL Backlight control pin

Usage Instructions

Integrating with a Circuit

  1. Power Connections: Connect the 3V pin to the 3.3V output on your Feather board and GND to ground.
  2. SPI Connections: Connect SCK, MOSI, and CS to the corresponding SPI pins on your Feather board.
  3. Control Pins: Connect the RST and DC pins to any available digital I/O pins on your Feather board, noting which pins you use as they will be specified in your code.
  4. Backlight Control (Optional): Connect the BL pin to a PWM-capable pin if you wish to control the backlight brightness.

Important Considerations and Best Practices

Example Code for Arduino UNO

#include <Adafruit_GFX.h>    // Core graphics library
#include <Adafruit_TFTLCD.h> // Hardware-specific library

#define LCD_CS A3 // Chip Select goes to Analog 3
#define LCD_CD A2 // Command/Data goes to Analog 2
#define LCD_WR A1 // LCD Write goes to Analog 1
#define LCD_RD A0 // LCD Read goes to Analog 0
#define LCD_RESET A4 // Can alternately just connect to Arduino's reset pin

Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);

void setup() {
  tft.begin(); // Initialize the display
  tft.setRotation(1); // Set orientation
  tft.fillScreen(BLACK); // Clear the screen with a black background
}

void loop() {
  // Example: Draw a red rectangle
  tft.fillRect(50, 50, 100, 150, RED);
  delay(1000);
  
  // Example: Display text
  tft.setCursor(60, 60);
  tft.setTextColor(WHITE);  
  tft.setTextSize(2);
  tft.println("Hello, World!");
  delay(2000);
}

Troubleshooting and FAQs

Common Issues

Solutions and Tips for Troubleshooting

FAQs

Q: Can I use this display with a 5V microcontroller? A: Yes, but ensure that the logic levels are shifted to 3.3V to avoid damaging the display.

Q: Is the touch screen feature available by default? A: The resistive touch overlay is optional and requires additional connections and libraries if implemented.

Q: How can I control the backlight brightness? A: Connect the BL pin to a PWM-capable pin and use analogWrite() in your code to adjust the brightness.

For further assistance, consult the Adafruit forums or the detailed product guides available on the Adafruit website.