2.8inch Resistive Touch LCD

From Waveshare Wiki
Jump to: navigation, search
2.8inch Resistive Touch LCD
2.8inch Resistive Touch LCD

2.8inch Resistive Touch LCD, SPI interface, 320x240 Resolution
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Primary Attribute
Category: LCD, OLEDs / LCDs
{{{userDefinedInfo}}}: {{{userdefinedvalue}}}
Brand: Waveshare
Website
English: Website
Chinese: 中文官网
Onboard Interfaces
SPI
Related Products

Instruction

This is a multicolor graphic IPS LCD display, 2.8inch diagonal, 320×240 pixels, with resistive touch screen.

Feature

  • Onboard touch controller, smoother touch experience than solutions that directly use AD pins for touching
  • SPI interface, requires a few pins
  • Programmable backlight control, power saving
  • Comes with development resources and manual (examples for STM32/AVR/PIC)

Specification

Display Controller HX8347D
Touch Controller XPT2046
LCD Type IPS
Interface SPI
Resolution 320*240
Dimension 79.9mm x50.8mm
Display area 57.6mm x 43.2mm
Display colors RGB, 65K colors
Touch Type 4-wire resistive
Power supply 5V
Logic level 3.3V

Interface

5V 5V
GND Ground
MISO Data output of SPI interface (slaver)
MOSI Data input of SPI interface (slaver)
SCLK Clock pin of SPI interface
LCD_CS Chip select pin of LCD
LCD_DC Data/Command selection
LCD_RST LCD Reset
LCD_BL Backlight control
TP_CS Chip select pin of Touch
TP_IRQ Interrupt pin of Touch

User Guide

There are several examples provides, demo codes can be downloaded from #Demo codes

OpenX05R-C

This example is based on Waveshare Open405R-C.

  • Remove four LED jumpers, then insert the 2.8inch LCD to Open405R-C
  • Open the TouchPanel project, which is under the Open405R-C directory. Compile and download it to the development board
  • After downloading, press reset button of the OpenX05-C board, you can see that prompt information are printed on LCD:
Please use the stylus clock the cross on the screen. The cross will always move until the screen adjustment is completed.
  • You need to calibrate the touchscreen by touch pen following the prompt.
  • After calibrating, now you can try to draw on the touchscreen.

For more details, you can refer to the codes

2.8inch Resistive Touch LCD-001.png

OpenM128

This example is based on Waveshare OpenM128

  • Connect the LCD to OpenM128 accoding to figures below:
2.8inch Resistive Touch LCD OpenM128
5V 5V
GND GND
MISO PB2/DIN
MOSI PB3/DOUT
SCLK PB1/CLK
LCD_CS PD6/CS
LCD_DC PB5/RS
LCD_RST PB6/RESET
LCD_BL PE5/PWM
TP_CS PB4
TP_IRQ PE4/IRQ
  • Connect ISP prorammer to OpenM128 board and power on it.
  • Open project nu Atmel Studio 7.0 software
  • Compile and flash code to OpenM128
2.8inch Resistive Touch LCD-003.png    2.8inch Resistive Touch LCD-004.jpg

Open103C

This example is based on Waveshare Open103C

  • Connect LCD to Open103C according to figures below
2.8inch Resistive Touch LCD Open103C
5V 5V
GND GND
MISO PB14
MOSI PB15
SCLK PB13
LCD_CS PB12
LCD_DC PB8
LCD_RST PB9
LCD_BL PB0
TP_CS PA15
TP_IRQ PB1
2.8inch Resistive Touch LCD-005.png
  • Connect ST-Link programmer to Open103C and power on it
  • Open project, compile and flash codes to Open103C
2.8inch Resistive Touch LCD-006.png

Open16F877A/Open18F4520

This example is based on Waveshare Open16F877A/Open18F4520

  • Connect the LCD to Open16F877A/Open18F4520 according to figures below
2.8inch Resistive Touch LCD Open16F877A
5V 5V
GND GND
MISO RC4
MOSI RC5
SCLK RC3
LCD_CS RA1
LCD_DC RA2
LCD_RST RD0
LCD_BL 3.3V
TP_CS RA4
TP_IRQ RA0
2.8inch Resistive Touch LCD-007.png

Resource

Documents

Demo codes

FAQ

...

Supports

Mail.png Contact your seller (fast response and most recommended)

or send emails to [email protected] (not fast enough but please be patient) for help.

Our working time: 09:00-18:00 (UTC+8 Monday to Saturday)