Appunti su LCD

Acqua con TFT 2.8 pollici con touch resistivo 320x240 (Joy)

LCD PIN SIGNAL ACQUA PIN SIGNAL ARIETTA PIN SIGNAL
1 LEDK GND J4.9 GND
2 LEDA1 3V3 J4.5 3V3
3 LEDA2 3V3 J4.5 3V3
4 LEDA3 3V3 J4.5 3V3
5 LEDA4 3V3 J4.5 3V3
6 IM0 GND J4.9 GND
7 IM1 3V3 J4.5 3V3
8 IM2 3V3 J4.5 3V3
9 IM3 3V3 J4.5 3V3
10 RESET J2.33 PB8 J4.33 PC3
33 MISO J2.8 MISO J4.10 SPI1-MISO (PA11)
34 MOSI J2.7 MOSI J4.8 SPI1-MOSI (PA12)
36 D/CX J2.31 PB1 J4.31 PC4
37 SCK J2.6 CLK J4.7 SPI1-CLK (PA13)
38 CSX J2.5 CS0 J4.25 SPI1-CS0 (PA8)
40 VDDI 3V3 J4.5 3V3
41 VDDI 3V3 J4.5 3V3
42 VCI 3V3 J4.5 3V3
43 GND GND J4.9 GND
44 X+ (XR) J1.43 AD3 (XL) J4.38 AD2
45 Y+ (YB) J1.40 AD0 (YT) J4.36 AD1
46 X- (XL) J1.42 AD2 (XR) J4.40 AD3
47 Y- (XT) J1.41 AD1 (YB) J4.34 AD0
48 GND GND J4.9 GND
49 GND GND J4.9 GND
50 GND GND J4.9 GND

Touch lines with rotate = 270 (Connector on right)



Aria G25 con oLed 128x128 (SPI)

Wirings con Aria G25

Adafruit at91
#1 MOSI PA12
#2 SCK PA13
#3 DC PC21
#4 R PC20
#5 OLEDCS PA14
#7 MISO PA11
#9 3V3 3V3
#11 GND GND

Acqua con TFT 4.3 pollici con touch resistivo 480x272 (RGB)

Wirings con Acqua

DSP SIGNAL ACQUA
1 VLED- GND
2 VLED+ 23VDC
3 GND GND
4 VDD 3VDC
5 R0 J1.26 LCD DAT16
6 R1 J1.25 LCD DAT17
7 R2 J1.29 LCD DAT18
8 R3 J1.27 LCD DAT19
9 R4 J1.30 LCD DAT20
10 R5 J1.29 LCD DAT21
11 R6 J1.32 LCD DAT22
12 R7 J1.31 LCD DAT23
13 G0 J1.18 LCD DAT8
14 G1 J1.17 LCD DAT9
15 G2 J1.20 LCD DAT10
16 G3 J1.19 LCD DAT11
17 G4 J1.22 LCD DAT12
18 G5 J1.21 LCD DAT13
19 G6 J1.24 LCD DAT14
20 G7 J1.23 LCD DAT15
21 B0 J1.10 LCD DAT0
22 B1 J1.9 LCD DAT1
23 B2 J1.12 LCD DAT2
24 B3 J1.11 LCD DAT3
25 B4 J1.14 LCD DAT4
26 B5 J1.13 LCD DAT5
27 B6 J1.16 LCD DAT6
28 B7 J1.15 LCD DAT7
29 DGND GND
30 DCLK J1.36 LCD PCK
31 DISP J1.33 LCD DISP
32 HSYNC J1.35 LCD HSYNC
33 VSYNC J1.38 LCD VSYNC
34 DE J1.37 LCD DEN
35 NC
36 GND GND
37 X_R J1.42 AD0
38 Y_B J1.41 AD2
39 X_L J1.43 AD1
40 Y_T J1.40 AD3

Abilitazione TFT

compatible = "acme,acqua", "pda,tm43xx", "atmel,sama5d3", "atmel,sama5";

nel .dts

Settaggio colori per il 5 e 7 pollici

File arch/arm/mach-at91/board-dt-sama5.c

Cambiare la linea 352 in

ek_lcdc_data.default_lcdcon2 = LCDC_LCDCFG5_MODE_OUTPUT_24BPP;

Comandi vari

Riempire i frame buffer di dati casuali:

# cat /dev/urandom > /dev/fb0

Far partire X da DPI:

# FRAMEBUFFER=/dev/fb0 startx

Inviare comandi da DPI alla consolle su X:

# DISPLAY=":0" mplayer video.mp4

Non ricordo piu' a che serve :-(

# apt-get install xinput
# xinput list
# apt-get install evtest

Photo frame

# mplayer mf://*.jpg -mf fps=0.1 -loop 0

DOOM

# FRAMEBUFFER=/dev/fb0 startx &
# DISPLAY=":0" /usr/games/chocolate-doom -width 320 -height 240

Usare i gpio_keys

Altro