This example demonstrates how to test touch screen by ts_calibrate application built with Buildroot.
Hardware preparation:
- Hardware debugging environment to see chapter2.
Board Type | MYD-AM335X | MYD-AM335X-Y | MYD-AM335X-J |
---|---|---|---|
Touch screen interface | (MY-TFT070RV2) 7 inch resistive screen connection J8 | (MY-TFT070CV2) 7 inch capacitive screen/(MY-TFT070RV2) 7 inch resistive screen connection J7 | (MY-TFT070CV27) inch capacitive screen/(MY-TFT070RV2) 7 inch resistive screen connection J8 |
Software Preparation:
- Linux Kernel 4.1.18
- TS_CALIBRATE application
Test Steps:
- Connect MY-TFT070CV2 module to MYD-AM335X series development board, power on the board and view the device node in /dev/input directory.
1 |
# ls /dev/input |
The result above shows the resistive touch screen is corresponding to /dev/input/event3
;
The capacitive touch screen is corresponding to `/dev/input/event2, so test capactive touch screen as below:
1 |
# export TSLIB_TSDEVICE=/dev/input/event2 |
- Power off the MYD-AM335X series development board,connect MY-TFT070RV2 module to MYD-AM335X series development board, power on the board and view the device node in /dev/input directory.
1 |
# ls /dev/input |
The result above shows the resistive touch screen is corresponding to /dev/input/event1
, so test resistive touch screen as below:
1 |
# export TSLIB_TSDEVICE=/dev/input/event1 |
近期评论