LCD Type
|
TFT
|
LCD Interface
|
SPI
|
Touch Screen Type
|
Resistive
|
Touch Screen Controller
|
XPT2046
|
Colors
|
65536
|
Backlight
|
LED
|
Resolution
|
320*480 (Pixel)
|
Aspect Ratio
|
2:03
|
Power Consumption
|
TBD
|
Backlight Current
|
TBD
|
Operating Temp. (℃)
|
TBD
|
Interface
PIN NO.
|
SYMBOL
|
DESCRIPTION
|
1, 17
|
3.3V
|
Power positive (3.3V power input)
|
2, 4
|
5V
|
Power positive (5V power input)
|
3, 5, 7, 8, 10, 12, 13, 15, 16
|
NC
|
NC
|
6, 9, 14, 20, 25
|
GND
|
Ground
|
11
|
TP_IRQ
|
Touch Panel interrupt, low level while the Touch Panel detects touching
|
18
|
LCD_RS
|
Instruction/Data Register selection
|
19
|
LCD_SI / TP_SI
|
SPI data input of LCD/Touch Panel
|
21
|
TP_SO
|
SPI data output of Touch Panel
|
22
|
RST
|
Reset
|
23
|
LCD_SCK / TP_SCK
|
SPI clock of LCD/Touch Panel
|
24
|
LCD_CS
|
LCD chip selection, low active
|
26
|
TP_CS
|
Touch Panel chip selection, low active
|
Here are the key values, i have not tested on the current distro, these came from the rpi2 image at sainsmart for this display.
/etc/modules
i2c-bcm2708
i2c-dev
flexfb width=320 height=480 regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3
fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24
ads7846_device model=7846 cs=1 gpio_pendown=17 keep_vref_on=1 swap_xy=1 pressure_max=255 x_plate_ohms=60 x_min=200 x_max=3900 y_min=200 y_max=3900
/boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
No comments:
Post a Comment