The Adafruit 3.5in 480x320 TFT FeatherWing is a vibrant, full-color display module that provides a high-resolution interface for Adafruit Feather boards. With its 3.5-inch screen and 480x320 pixel resolution, it is an excellent choice for projects requiring graphical output, such as handheld games, data monitors, or interactive control panels.
Pin Name | Description |
---|---|
SCK | SPI Clock |
MOSI | SPI Master Out Slave In |
MISO | SPI Master In Slave Out (not used) |
CS | Chip Select for the TFT display |
D/C | Data/Command control pin |
RESET | Reset pin for the TFT |
T_CS | Touch screen chip select |
T_IRQ | Touch screen interrupt pin (optional) |
Connecting to a Feather Board:
Powering the Display:
Programming the Display:
#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() {
Serial.begin(9600);
tft.reset();
uint16_t identifier = tft.readID();
tft.begin(identifier);
tft.fillScreen(BLACK);
}
void loop() {
// Basic test code to display colors
tft.fillScreen(RED);
delay(500);
tft.fillScreen(GREEN);
delay(500);
tft.fillScreen(BLUE);
delay(500);
}
Note: This example assumes the use of an Arduino UNO with the Adafruit TFTLCD library. Make sure to install the library using the Arduino Library Manager before uploading the code.
FAQs:
Q: Can I use the TFT FeatherWing with boards other than Feather? A: While designed for Feather boards, with proper wiring and code modifications, it can be used with other microcontrollers that support SPI.
Q: Is the display sunlight-readable? A: The TFT FeatherWing is not optimized for sunlight readability. It is best viewed indoors or in shaded areas.
Q: How do I calibrate the touch screen? A: Use the calibration sketch provided with the STMPE610 library to calibrate the touch screen for accurate input.