Difference between revisions of "2.8inch Resistive Touch LCD"
From Waveshare Wiki
Line 69: | Line 69: | ||
==User Guide== | ==User Guide== | ||
− | ... | + | There are several examples provides, demo codes can be downloaded from [[#Demo codes]] |
+ | ===OpenX05R-C=== | ||
+ | This example is based on Waveshare [https://www.waveshare.com/open405r-c-standard.htm 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: | ||
+ | :<font color=red>Please use the stylus clock the cross on the screen. The cross will always move until the screen adjustment is completed.</font> | ||
+ | *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 | ||
+ | :[[File:2.8inch_Resistive_Touch_LCD-001.png|700px]] | ||
+ | ===OpenM128=== | ||
+ | '''Hardware connection''' | ||
+ | |||
+ | {|class="wikitable" style="text-align:center" | ||
+ | !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 | ||
+ | |} | ||
+ | |||
==Resource== | ==Resource== | ||
===Documents=== | ===Documents=== |
Revision as of 02:28, 4 September 2019
| ||
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
OpenM128
Hardware connection
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 |
Resource
Documents
Demo codes
FAQ
...
Supports
Support
If you require technical support, please go to the Support page and open a ticket.