Arduino и дисплеи от сотиков мобильных телефонов

криворук
Offline
Зарегистрирован: 04.04.2020

Скачай от сюда архив схем http://www.texnic.ru/shems/mobil/samsung_mobile.htm

и по схемам может повезёт найти.

croc19
Offline
Зарегистрирован: 17.02.2017

Качественные фотки в студию

ShMikhail
ShMikhail аватар
Offline
Зарегистрирован: 01.02.2020

croc19 пишет:

Качественные фотки в студию

не могу понять как тутизображения вставлять, неудобно все, непривычно.

криворук
Offline
Зарегистрирован: 04.04.2020

я через яндекс диск ссылки кидал

ShMikhail
ShMikhail аватар
Offline
Зарегистрирован: 01.02.2020

 

Xomyc
Offline
Зарегистрирован: 10.04.2020

Народ, прошу прощения, что не в тему, но уже не знаю как уведомления отключить. Засыпает просто из этой темы мой почтовый ящик. опробую так, галку внизу сниму. Из писем уже раз десять переходил по ссылке снять уведомления и пишет типа сняты. Но шлет и шлет!

криворук
Offline
Зарегистрирован: 04.04.2020

галочку постави на входящем письме внизу

lawr
Offline
Зарегистрирован: 19.02.2017

ShMikhail, вот кусок схемы телефона SM_B310e. Поддерживаемые драйверы LCD - из прошивки:

ShMikhail
ShMikhail аватар
Offline
Зарегистрирован: 01.02.2020

Спасибо огромное!!!

Xomyc
Offline
Зарегистрирован: 10.04.2020

криворук пишет:

галочку постави на входящем письме внизу

Уже ставил. Все равно идут. Как связатся с модератораторами чтоль?

ShMikhail
ShMikhail аватар
Offline
Зарегистрирован: 01.02.2020

Спасибо огромное!!!

криворук
Offline
Зарегистрирован: 04.04.2020

постави галку спам

Xomyc
Offline
Зарегистрирован: 10.04.2020

криворук пишет:

постави галку спам

Ага, а когда задам следующий вопрос, сниму галку СПАМ и снова начну получать по старой теме. Тем более, что она достаточно активная.

криворук
Offline
Зарегистрирован: 04.04.2020

ну уж..

b707
Offline
Зарегистрирован: 26.05.2017

Xomyc пишет:

Уже ставил. Все равно идут. Как связатся с модератораторами чтоль?

не поможет.

Единсвенный вариант - каждый раз, когда приходит уведомление в почту - не ленится в каждом письме жмакать на ссылку  "отключить уведомления". Обычно раза с пятидесятого помогает...

 

yuhenotix@2p-ma...
Offline
Зарегистрирован: 09.06.2019

/

ixtronO9
Offline
Зарегистрирован: 24.06.2020
Подскажите распиновку для этого дисплея, нигде не могу найти((.
46 pin, (84*53), #TFT8K2653FPC-A2-E.
Nemizan
Offline
Зарегистрирован: 26.06.2020

Люди, прошу помощи! Как подключить дисплей RGB к Ардуине. Вытащил из Android игровой консоли.

Вот под него распиновка:

Вообще, если забыть про CLK, то пины очень похожи на VGA интерфейс. Ежели я прав, то можно просто использовать ESP32 и библиотеку VGA к ней.

А коли нет, то помогите подключить к ардуине, пожалуйста!

croc19
Offline
Зарегистрирован: 17.02.2017

ixtronO9 ФОТО ГДЕ

Nemizan  НАПРЯМУЮ К АРДУИНЕ НЕ ПОДКЛЮЧИТЬ

Nemizan
Offline
Зарегистрирован: 26.06.2020

croc19 Так может к ESP32 можно? Частота 240 МГц, 520 КБ оперативки.

Nemizan
Offline
Зарегистрирован: 26.06.2020

/

криворук
Offline
Зарегистрирован: 04.04.2020

здесь кто то вроде писал что у таких дисплеев пины похожие но принцип работы абсолютно другой

croc19
Offline
Зарегистрирован: 17.02.2017

На esp попробывать можно. В ветке обсуждали такие дисплеи черно белые. У esp и память есть. Пробуй.

Nemizan
Offline
Зарегистрирован: 26.06.2020

На шлейфе от дисплея нашлись три пина (находящиеся вдали от всех): SCL SDA и CS. Может быть такое на RGB дисплее?

misir
Offline
Зарегистрирован: 14.05.2018

Добрый день всем,подскажите как подключить дисплей explay n1 в 8 bit режим.

oldman
Offline
Зарегистрирован: 27.03.2020

misir пишет:

Добрый день всем,подскажите как подключить дисплей explay n1 в 8 bit режим.

  Если это TXDT350DH-129: D0...D7,  IM0 +3,3; IM1 +3,3. Контроллер HX8357D.

Посмотри здесь http://arduino.ru/forum/apparatnye-voprosy/arduino-i-displei-ot-sotikov-...

криворук
Offline
Зарегистрирован: 04.04.2020

доброе утро товарищи. не подскажете есть ли читалка для аитуси ? экранчики жирненькие имею,вернее они меня.

криворук
Offline
Зарегистрирован: 04.04.2020

ща посмотрю но так,на всякий, если по такой теме есть инфа то пож.поделитесь. это касается именно новых китайских штамповок самсунг и бывший флай вроде ну типа ф+

криворук
Offline
Зарегистрирован: 04.04.2020

ссори не самсунг а нокиа и ф+

misir
Offline
Зарегистрирован: 14.05.2018

 Если это TXDT350DH-129: D0...D7,  IM0 +3,3; IM1 +3,3. Контроллер HX8357D.

Посмотри здесь http://arduino.ru/forum/apparatnye-voprosy/arduino-i-displei-ot-sotikov-mobilnykh-telefonov?page=57#comment-535570[/quote]

Спасибо.

криворук
Offline
Зарегистрирован: 04.04.2020

привет товарищи. подскажите пожалуйста. есть экранчик. питание вроде нашёл. данных по нему не нашёл.возможно ли от него хоть какие пины определить по его ответу?есть осцилограф..

slider
Offline
Зарегистрирован: 17.06.2014

криворук пишет:

привет товарищи. подскажите пожалуйста. есть экранчик. питание вроде нашёл. данных по нему не нашёл.возможно ли от него хоть какие пины определить по его ответу?есть осцилограф..

проще выложить качественные фото , думаю коллективный разум поможет. гляньте первые 10страниц ветки , мож что похожее аналогичное по фото попадётся. Если не похож , то не подключите.
Осцил вам ничего здесь не подскажет.
Светодиоды и резисторы , да (мож еще макетку бридбоард или выключатели) .     но это долго и муторно протыкивать всё , так можно найти CS , IM0...3 , RD ,  в общем входы и выходы (шину управления и шину данных) . 

forfrends
Offline
Зарегистрирован: 24.02.2015

Всем привет! Когда-то я начинал работать с одним дисплеем, но в силу обстоятельств отложил его в сторону на долгое время.
Но вот решил его подключить. И так, что имеем:

Дохлый китайский телефон, подделка под какой-то Samsung. 5.6", 43 pin, маркировка на дисплее:

F571035VE
W571035BAA
S/N:140122 68180
 
           
 
Распиновка:
GND
RES	
NC
NC
NC
NC
NC
NC
NC
NC
DATA (GND)
DATA (GND)
DATA (GND)
DATA (GND)
DATA (GND)
DATA (GND)
DATA (GND)
DATA (GND)
DATA (D7)
DATA (D6)
DATA (D5)
DATA (D4)
DATA (D3)
DATA (D2)
DATA (D1)
DATA (D0)
RD
WR
RS (DC)
CS
TE
IOVCC
IOVCC
GND
LED - A +18V
LED - A
LED - K GND
LED - K
GND
Sensor
Sensor
Sensor
Sensor

Подключение а Ардуино Мега:

RES			41
RD			42 (или к +3.3в)
WR			39
RS (DC)		38
CS			40
D0-D7		37-30

Читалка версии 5.2 выдает следующее:

 
 
v5.2 read all register + read ID + TFT LCD test 
Using Adafruit 2.8" TFT Breakout Board Pinout
TFT size is 480x299
v5.2  Reading all registers + ID tft lcd  B0h=0x03(FF),=0x04 . from  Slider
 arduino.ru/forum/apparatnye-voprosy/arduino-i-displei-ot-sotikov-mobilnykh-telefonov 
 
reg  p1 p2 p3 p4 p5 p6 p7 p8  
00 = 0                       * 
01 = 0 
02 = 0 
03 = 0 
04 = 0                       * 
05 = 0 
06 = 0 
07 = 0 
08 = 0 
09 = 0 
0A = 08 08 08 08 08 08 08 08  
0B = 0 
0C = 07 07 07 07 07 07 07 07  
0D = 0 
0E = 0 
0F = 0 
10 = 0 
11 = 0 
12 = 0 
13 = 0 
14 = 0 
15 = 0 
16 = 0 
17 = 0 
18 = 0 
19 = 0 
1A = 0 
1B = 0 
1C = 0 
1D = 0 
1E = 0 
1F = 0 
20 = 0 
21 = 0 
22 = 0 
23 = 0 
24 = 0 
25 = 0 
26 = 01 01 01 01 01 01 01 01  
27 = 0 
28 = 0 
29 = 0 
2A = 0 
2B = 0 
2C = 0 
2D = 0 
2E = 0 
2F = 0 
30 = 0 
31 = 0 
32 = 0 
33 = 0 
34 = 0 
35 = 0 
36 = 0 
37 = 0 
38 = 0 
39 = 0 
3A = 07 07 07 07 07 07 07 07  
3B = 0 
3C = 0 
3D = 0 
3E = 0 
3F = 0 
40 = 0 
41 = 0 
42 = 0 
43 = 0 
44 = 0 
45 = 0 
46 = 0 
47 = 0 
48 = 0 
49 = 0 
4A = 0 
4B = 0 
4C = 0 
4D = 0 
4E = 0 
4F = 0 
50 = FF FF FF FF FF FF FF FF  
51 = 0 
52 = 0 
53 = 0 
54 = 0 
55 = 0 
56 = 0 
57 = FF FF FF FF FF FF FF FF  
58 = 01 01 01 01 01 01 01 01  
59 = 0 
5A = 0 
5B = 0 
5C = 0 
5D = 0 
5E = 0 
5F = 0 
60 = 0 
61 = 0 
62 = 0 
63 = 0 
64 = 0 
65 = 80 80 80 80 80 80 80 80  
66 = 80 80 80 80 80 80 80 80  
67 = 0 
68 = 0 
69 = 0 
6A = 0 
6B = 0 
6C = 0 
6D = 0 
6E = 0 
6F = 0 
70 = 0 
71 = 0 
72 = 0 
73 = 0 
74 = 0 
75 = 0 
76 = 0 
77 = 0 
78 = 0 
79 = 0 
7A = 0 
7B = 0 
7C = 0 
7D = 0 
7E = 0 
7F = 0 
80 = 0 
81 = 0 
82 = 0 
83 = 0 
84 = 0 
85 = 0 
86 = 0 
87 = 0 
88 = 0 
89 = 0 
8A = 0 
8B = 0 
8C = 0 
8D = 0 
8E = 0 
8F = 0 
90 = 0 
91 = 0 
92 = 0 
93 = 0 
94 = 0 
95 = 0 
96 = 0 
97 = 0 
98 = 0 
99 = 0 
9A = 0 
9B = 0 
9C = 0 
9D = 0 
9E = 0 
9F = 0 
A0 = 0 
A1 = 0 
A2 = 0 
A3 = 0 
A4 = 0 
A5 = 0 
A6 = 0 
A7 = 0 
A8 = 0 
A9 = 0 
AA = 0 
AB = 0 
AC = 0 
AD = 0 
AE = 0 
AF = 0 
B0 = 0 
B1 = 0 
B2 = 0 
B3 = 0 
B4 = 0 
B5 = 0 
B6 = 0 
B7 = 0 
B8 = 0 
B9 = 0 
BA = 0 
BB = 0 
BC = 0 
BD = 0 
BE = 0 
BF = 0                       * 
C0 = 0 
C1 = 0 
C2 = 0 
C3 = 0 
C4 = 0 
C5 = 0 
C6 = 0 
C7 = 0 
C8 = 0 
C9 = 0 
CA = 0 
CB = 0 
CC = 0 
CD = 0 
CE = 0 
CF = 0 
D0 = 0 
D1 = 0 
D2 = 0 
D3 = 0                       * 
D4 = 0 
D5 = 0 
D6 = 0 
D7 = 0 
D8 = 0 
D9 = 0 
DA = 0                       * 
DB = 80 80 80 80 80 80 80 80 ***** 
DC = 0                       * 
DD = 0 
DE = 0 
DF = 0 
E0 = 0 
E1 = 0 
E2 = 0 
E3 = 0 
E4 = 0 
E5 = 0 
E6 = 0 
E7 = 0 
E8 = 0 
E9 = 0 
EA = 0 
EB = 0 
EC = 0 
ED = 0 
EE = 0 
EF = 0                       * 
F0 = 0 
F1 = 0 
F2 = 0 
F3 = 0 
F4 = 0 
F5 = 0 
F6 = 0 
F7 = 0 
F8 = 0 
F9 = 0 
FA = 0 
FB = 0 
FC = 0 
FD = 0 
FE = 0 
 
00 = 0                       * 
04 = 0                       * 
B0 = 0 
BF = 0                       * 
D3 = 0                       * 
DA = 0                       * 
DB = 80 80 80 80 80 80 80 80 ***** 
DC = 0                       * 
EF = 0                       * 
 . . . . . . . 
  writing in Manufacturer Command Access Protect  (B0h) <- 0xFFFFFF  
B0 = 0 
Device Code Read (BFh)  
BF = 0                       * 
 . . . 
 
reg  p1 p2 p3 p4 p5 p6 p7 p8  
B0 = 0 
B1 = 0 
B2 = 0 
B3 = 0 
B4 = 0 
B5 = 0 
B6 = 0 
B7 = 0 
B8 = 0 
B9 = 0 
BA = 0 
BB = 0 
BC = 0 
BD = 0 
BE = 0 
BF = 0                       * 
C0 = 0 
C1 = 0 
C2 = 0 
C3 = 0 
C4 = 0 
C5 = 0 
C6 = 0 
C7 = 0 
C8 = 0 
C9 = 0 
CA = 0 
CB = 0 
CC = 0 
CD = 0 
CE = 0 
CF = 0 
D0 = 0 
D1 = 0 
D2 = 0 
D3 = 0                       * 
D4 = 0 
D5 = 0 
D6 = 0 
D7 = 0 
D8 = 0 
D9 = 0 
DA = 0                       * 
DB = 80 80 80 80 80 80 80 80 ***** 
DC = 0                       * 
DD = 0 
DE = 0 
DF = 0 
E0 = 0 
E1 = 0 
E2 = 0 
E3 = 0 
E4 = 0 
E5 = 0 
E6 = 0 
E7 = 0 
E8 = 0 
E9 = 0 
EA = 0 
EB = 0 
EC = 0 
ED = 0 
EE = 0 
EF = 0                       * 
F0 = 0 
F1 = 0 
F2 = 0 
F3 = 0 
F4 = 0 
F5 = 0 
F6 = 0 
F7 = 0 
F8 = 0 
F9 = 0 
FA = 0 
FB = 0 
FC = 0 
FD = 0 
FE = 0 
 writing in Manufacturer Command Access Protect  (B0h) <- 0x040404  
B0 = 0 
Device Code Read (BFh)  
BF = 0                       * 
 . . . 
 
reg  p1 p2 p3 p4 p5 p6 p7 p8  
B0 = 0 
B1 = 0 
B2 = 0 
B3 = 0 
B4 = 0 
B5 = 0 
B6 = 0 
B7 = 0 
B8 = 0 
B9 = 0 
BA = 0 
BB = 0 
BC = 0 
BD = 0 
BE = 0 
BF = 0                       * 
C0 = 0 
C1 = 0 
C2 = 0 
C3 = 0 
C4 = 0 
C5 = 0 
C6 = 0 
C7 = 0 
C8 = 0 
C9 = 0 
CA = 0 
CB = 0 
CC = 0 
CD = 0 
CE = 0 
CF = 0 
D0 = 0 
D1 = 0 
D2 = 0 
D3 = 0                       * 
D4 = 0 
D5 = 0 
D6 = 0 
D7 = 0 
D8 = 0 
D9 = 0 
DA = 0                       * 
DB = 80 80 80 80 80 80 80 80 ***** 
DC = 0                       * 
DD = 0 
DE = 0 
DF = 0 
E0 = 0 
E1 = 0 
E2 = 0 
E3 = 0 
E4 = 0 
E5 = 0 
E6 = 0 
E7 = 0 
E8 = 0 
E9 = 0 
EA = 0 
EB = 0 
EC = 0 
ED = 0 
EE = 0 
EF = 0                       * 
F0 = 0 
F1 = 0 
F2 = 0 
F3 = 0 
F4 = 0 
F5 = 0 
F6 = 0 
F7 = 0 
F8 = 0 
F9 = 0 
FA = 0 
FB = 0 
FC = 0 
FD = 0 
FE = 0 
 
Unknown LCD driver chip: 0
***use minimal init as driver ili9341 ili9488 *** ->
Benchmark                Time (microseconds)
Screen fill              1901292
Text                     319544
Lines                    6059424
Horiz/Vert Lines         193196
Rectangles (outline)     117948
Rectangles (filled)      4536664
Circles (filled)         1929588
Circles (outline)        2535268
Triangles (outline)      1064844
Triangles (filled)       2408664
Rounded rects (outline)  706352
Rounded rects (filled)   5258740
Done!

Дисплей изначально настроен на 8-ми битную шину (IM0). Используются пины D0-D7 (пины 27-19). Подсветка питается от 18 вольт (примерно). Удалось достать материнскую плату от телефона, плата сдохла, так что только подключение можно посмотреть. Старшие биты подтянуты к земле. Пины 32 и 33 соедидены вместе, это 100% питание дисплея.  На плате стоит процессор Spreadtrum SC6531C. Рядом с ним обычная флешка 25Q128FWPM. 

На стандартный инит не реагирует, на дисплее ничего не отображается. При всех моих манипуляциях ответ не меняется, либо это, либо полная ерунда. Подключение проверил, коротышей, непропая нет.

Общими усилиями пришли к выводу что используется контроллер RM68180   480x800 смотрите этот пост и далее

Там же был найден подходящий инит:

LCD_Write_COM (0xF000); LCD_Write_DATA (0x55); 
LCD_Write_COM (0xF001); LCD_Write_DATA (0xAA); 
LCD_Write_COM (0xF002); LCD_Write_DATA (0x52); 
LCD_Write_COM (0xF003); LCD_Write_DATA (0x08); 
LCD_Write_COM (0xF004); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xB000); LCD_Write_DATA (0x05); 
LCD_Write_COM (0xB001); LCD_Write_DATA (0x05); 
LCD_Write_COM (0xB002); LCD_Write_DATA (0x05); 
LCD_Write_COM (0xB100); LCD_Write_DATA (0x05); 
LCD_Write_COM (0xB101); LCD_Write_DATA (0x05); 
LCD_Write_COM (0xB102); LCD_Write_DATA (0x05); 
LCD_Write_COM (0xB300); LCD_Write_DATA (0x08); 
LCD_Write_COM (0xB301); LCD_Write_DATA (0x08); 
LCD_Write_COM (0xB302); LCD_Write_DATA (0x08); 
LCD_Write_COM (0xB500); LCD_Write_DATA (0x08); 
LCD_Write_COM (0xB501); LCD_Write_DATA (0x08 );
LCD_Write_COM (0xB502); LCD_Write_DATA (0x08); 
LCD_Write_COM (0xB600); LCD_Write_DATA (0x54); 
LCD_Write_COM (0xB601); LCD_Write_DATA (0x54); 
LCD_Write_COM (0xB602); LCD_Write_DATA (0x54); 
LCD_Write_COM (0xB700); LCD_Write_DATA (0x44); 
LCD_Write_COM (0xB701); LCD_Write_DATA (0x44); 
LCD_Write_COM (0xB702); LCD_Write_DATA (0x44); 
LCD_Write_COM (0xb800); LCD_Write_DATA (0x34); 
LCD_Write_COM (0xB801); LCD_Write_DATA (0x34); 
LCD_Write_COM (0xB802); LCD_Write_DATA (0x34); 
LCD_Write_COM (0xB900); LCD_Write_DATA (0x34); 
LCD_Write_COM (0xB901); LCD_Write_DATA (0x34); 
LCD_Write_COM (0xB902); LCD_Write_DATA (0x34); 
LCD_Write_COM (0xBA00); LCD_Write_DATA (0x24); 
LCD_Write_COM (0xBA01); LCD_Write_DATA (0x24); 
LCD_Write_COM (0xBA02); LCD_Write_DATA (0x24 );
LCD_Write_COM (0xBC00); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xBC01); LCD_Write_DATA (0xA0); 
LCD_Write_COM (0xBC02); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xBD00); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xBD01); LCD_Write_DATA (0xA0); 
LCD_Write_COM (0xBD02); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xBE00); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xBE01); LCD_Write_DATA (0x58); 
LCD_Write_COM (0xBF00); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD100); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD101); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD102); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD103); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD104); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD105); LCD_Write_DATA (0x15); 
LCD_Write_COM (0xD106); LCD_Write_DATA (0x00 );
LCD_Write_COM (0xD107); LCD_Write_DATA (0x3B); 
LCD_Write_COM (0xD108); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD109); LCD_Write_DATA (0x6C); 
LCD_Write_COM (0xD10A); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD10B); LCD_Write_DATA (0xC7); 
LCD_Write_COM (0xD10C); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD10D); LCD_Write_DATA (0x0D); 
LCD_Write_COM (0xD10E); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD10F); LCD_Write_DATA (0x61); 
LCD_Write_COM (0xD110); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD111); LCD_Write_DATA (0x94); 
LCD_Write_COM (0xD112); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD113); LCD_Write_DATA (0xD4); 
LCD_Write_COM (0xD114); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD115); LCD_Write_DATA (0xFF); 
LCD_Write_COM (0xD116); LCD_Write_DATA (0x02 );
LCD_Write_COM (0xD117); LCD_Write_DATA (0x3C); 
LCD_Write_COM (0xD118); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD119); LCD_Write_DATA (0x69); 
LCD_Write_COM (0xD11A); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD11B); LCD_Write_DATA (0x6A); 
LCD_Write_COM (0xD11C); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD11D); LCD_Write_DATA (0x90); 
LCD_Write_COM (0xD11E); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD11F); LCD_Write_DATA (0xB5); 
LCD_Write_COM (0xD120); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD121); LCD_Write_DATA (0xCB); 
LCD_Write_COM (0xD122); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD123); LCD_Write_DATA (0xE2); 
LCD_Write_COM (0xD124); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD125); LCD_Write_DATA (0xF2); 
LCD_Write_COM (0xD126); LCD_Write_DATA (0x03 );
LCD_Write_COM (0xD127); LCD_Write_DATA (0x04); 
LCD_Write_COM (0xD128); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD129); LCD_Write_DATA (0x11); 
LCD_Write_COM (0xD12A); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD12B); LCD_Write_DATA (0x21); 
LCD_Write_COM (0xD12C); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD12D); LCD_Write_DATA (0x2D); 
LCD_Write_COM (0xD12E); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD12F); LCD_Write_DATA (0x3e); 
LCD_Write_COM (0xD130); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD131); LCD_Write_DATA (0x64); 
LCD_Write_COM (0xD132); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD133); LCD_Write_DATA (0xFE); 
LCD_Write_COM (0xD200); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD201); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD202); LCD_Write_DATA (0x00 );
LCD_Write_COM (0xD203); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD204); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD205); LCD_Write_DATA (0x15); 
LCD_Write_COM (0xD206); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD207); LCD_Write_DATA (0x3B); 
LCD_Write_COM (0xD208); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD209); LCD_Write_DATA (0x6C); 
LCD_Write_COM (0xD20A); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD20B); LCD_Write_DATA (0xC7); 
LCD_Write_COM (0xD20C); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD20D); LCD_Write_DATA (0x0D); 
LCD_Write_COM (0xD20E); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD20F); LCD_Write_DATA (0x61); 
LCD_Write_COM (0xD210); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD211); LCD_Write_DATA (0x94); 
LCD_Write_COM (0xD212); LCD_Write_DATA (0x01 );
LCD_Write_COM (0xD213); LCD_Write_DATA (0xD4); 
LCD_Write_COM (0xD214); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD215); LCD_Write_DATA (0xFF); 
LCD_Write_COM (0xD216); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD217); LCD_Write_DATA (0x3C); 
LCD_Write_COM (0xD218); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD219); LCD_Write_DATA (0x69); 
LCD_Write_COM (0xD21A); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD21B); LCD_Write_DATA (0x6A); 
LCD_Write_COM (0xD21C); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD21D); LCD_Write_DATA (0x90); 
LCD_Write_COM (0xD21E); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD21F); LCD_Write_DATA (0xB5); 
LCD_Write_COM (0xD220); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD221); LCD_Write_DATA (0xCB); 
LCD_Write_COM (0xD222); LCD_Write_DATA (0x02 );
LCD_Write_COM (0xD223); LCD_Write_DATA (0xE2); 
LCD_Write_COM (0xD224); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD225); LCD_Write_DATA (0xF2); 
LCD_Write_COM (0xD226); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD227); LCD_Write_DATA (0x04); 
LCD_Write_COM (0xD228); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD229); LCD_Write_DATA (0x11); 
LCD_Write_COM (0xD22A); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD22B); LCD_Write_DATA (0x21); 
LCD_Write_COM (0xD22C); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD22D); LCD_Write_DATA (0x2D); 
LCD_Write_COM (0xD22E); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD22F); LCD_Write_DATA (0x3e); 
LCD_Write_COM (0xD230); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD231); LCD_Write_DATA (0x64); 
LCD_Write_COM (0xD232); LCD_Write_DATA (0x03 );
LCD_Write_COM (0xD233); LCD_Write_DATA (0xFE); 
LCD_Write_COM (0xD300); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD301); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD302); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD303); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD304); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD305); LCD_Write_DATA (0x15); 
LCD_Write_COM (0xD306); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD307); LCD_Write_DATA (0x3B); 
LCD_Write_COM (0xD308); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD309); LCD_Write_DATA (0x6C); 
LCD_Write_COM (0xD30A); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD30B); LCD_Write_DATA (0xC7); 
LCD_Write_COM (0xD30C); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD30D); LCD_Write_DATA (0x0D); 
LCD_Write_COM (0xD30E); LCD_Write_DATA (0x01 );
LCD_Write_COM (0xD30F); LCD_Write_DATA (0x61); 
LCD_Write_COM (0xD310); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD311); LCD_Write_DATA (0x94); 
LCD_Write_COM (0xD312); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD313); LCD_Write_DATA (0xD4); 
LCD_Write_COM (0xD314); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD315); LCD_Write_DATA (0xFF); 
LCD_Write_COM (0xD316); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD317); LCD_Write_DATA (0x3C); 
LCD_Write_COM (0xD318); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD319); LCD_Write_DATA (0x69); 
LCD_Write_COM (0xD31A); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD31B); LCD_Write_DATA (0x6A); 
LCD_Write_COM (0xD31C); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD31D); LCD_Write_DATA (0x90); 
LCD_Write_COM (0xD31E); LCD_Write_DATA (0x02 );
LCD_Write_COM (0xD31F); LCD_Write_DATA (0xB5); 
LCD_Write_COM (0xD320); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD321); LCD_Write_DATA (0xCB); 
LCD_Write_COM (0xD322); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD323); LCD_Write_DATA (0xE2); 
LCD_Write_COM (0xD324); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD325); LCD_Write_DATA (0xF2); 
LCD_Write_COM (0xD326); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD327); LCD_Write_DATA (0x04); 
LCD_Write_COM (0xD328); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD329); LCD_Write_DATA (0x11); 
LCD_Write_COM (0xD32A); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD32B); LCD_Write_DATA (0x21); 
LCD_Write_COM (0xD32C); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD32D); LCD_Write_DATA (0x2D); 
LCD_Write_COM (0xD32E); LCD_Write_DATA (0x03 );
LCD_Write_COM (0xD32F); LCD_Write_DATA (0x3e); 
LCD_Write_COM (0xD330); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD331); LCD_Write_DATA (0x64); 
LCD_Write_COM (0xD332); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD333); LCD_Write_DATA (0xFE); 
LCD_Write_COM (0xD400); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD401); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD402); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD403); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD404); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD405); LCD_Write_DATA (0x15); 
LCD_Write_COM (0xD406); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD407); LCD_Write_DATA (0x3B); 
LCD_Write_COM (0xD408); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD409); LCD_Write_DATA (0x6C); 
LCD_Write_COM (0xD40A); LCD_Write_DATA (0x00 );
LCD_Write_COM (0xD40B); LCD_Write_DATA (0xC7); 
LCD_Write_COM (0xD40C); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD40D); LCD_Write_DATA (0x0D); 
LCD_Write_COM (0xD40E); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD40F); LCD_Write_DATA (0x61); 
LCD_Write_COM (0xD410); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD411); LCD_Write_DATA (0x94); 
LCD_Write_COM (0xD412); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD413); LCD_Write_DATA (0xD4); 
LCD_Write_COM (0xD414); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD415); LCD_Write_DATA (0xFF); 
LCD_Write_COM (0xD416); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD417); LCD_Write_DATA (0x3C); 
LCD_Write_COM (0xD418); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD419); LCD_Write_DATA (0x69); 
LCD_Write_COM (0xD41A); LCD_Write_DATA (0x02 );
LCD_Write_COM (0xD41B); LCD_Write_DATA (0x6A); 
LCD_Write_COM (0xD41C); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD41D); LCD_Write_DATA (0x90); 
LCD_Write_COM (0xD41E); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD41F); LCD_Write_DATA (0xB5); 
LCD_Write_COM (0xD420); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD421); LCD_Write_DATA (0xCB); 
LCD_Write_COM (0xD422); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD423); LCD_Write_DATA (0xE2); 
LCD_Write_COM (0xD424); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD425); LCD_Write_DATA (0xF2); 
LCD_Write_COM (0xD426); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD427); LCD_Write_DATA (0x04); 
LCD_Write_COM (0xD428); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD429); LCD_Write_DATA (0x11); 
LCD_Write_COM (0xD42A); LCD_Write_DATA (0x03 );
LCD_Write_COM (0xD42B); LCD_Write_DATA (0x21); 
LCD_Write_COM (0xD42C); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD42D); LCD_Write_DATA (0x2D); 
LCD_Write_COM (0xD42E); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD42F); LCD_Write_DATA (0x3e); 
LCD_Write_COM (0xD430); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD431); LCD_Write_DATA (0x64); 
LCD_Write_COM (0xD432); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD433); LCD_Write_DATA (0xFE); 
LCD_Write_COM (0xD500); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD501); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD502); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD503); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD504); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD505); LCD_Write_DATA (0x15); 
LCD_Write_COM (0xD506); LCD_Write_DATA (0x00 );
LCD_Write_COM (0xD507); LCD_Write_DATA (0x3B); 
LCD_Write_COM (0xD508); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD509); LCD_Write_DATA (0x6C); 
LCD_Write_COM (0xD50A); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD50B); LCD_Write_DATA (0xC7); 
LCD_Write_COM (0xD50C); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD50D); LCD_Write_DATA (0x0D); 
LCD_Write_COM (0xD50E); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD50F); LCD_Write_DATA (0x61); 
LCD_Write_COM (0xD510); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD511); LCD_Write_DATA (0x94); 
LCD_Write_COM (0xD512); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD513); LCD_Write_DATA (0xD4); 
LCD_Write_COM (0xD514); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD515); LCD_Write_DATA (0xFF); 
LCD_Write_COM (0xD516); LCD_Write_DATA (0x02 );
LCD_Write_COM (0xD517); LCD_Write_DATA (0x3C); 
LCD_Write_COM (0xD518); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD519); LCD_Write_DATA (0x69); 
LCD_Write_COM (0xD51A); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD51B); LCD_Write_DATA (0x6A); 
LCD_Write_COM (0xD51C); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD51D); LCD_Write_DATA (0x90); 
LCD_Write_COM (0xD51E); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD51F); LCD_Write_DATA (0xB5); 
LCD_Write_COM (0xD520); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD521); LCD_Write_DATA (0xCB); 
LCD_Write_COM (0xD522); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD523); LCD_Write_DATA (0xE2); 
LCD_Write_COM (0xD524); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD525); LCD_Write_DATA (0xF2); 
LCD_Write_COM (0xD526); LCD_Write_DATA (0x03 );
LCD_Write_COM (0xD527); LCD_Write_DATA (0x04); 
LCD_Write_COM (0xD528); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD529); LCD_Write_DATA (0x11); 
LCD_Write_COM (0xD52A); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD52B); LCD_Write_DATA (0x21); 
LCD_Write_COM (0xD52C); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD52D); LCD_Write_DATA (0x2D); 
LCD_Write_COM (0xD52E); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD52F); LCD_Write_DATA (0x3e); 
LCD_Write_COM (0xD530); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD531); LCD_Write_DATA (0x64); 
LCD_Write_COM (0xD532); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD533); LCD_Write_DATA (0xFE); 
LCD_Write_COM (0xD600); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD601); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD602); LCD_Write_DATA (0x00 );
LCD_Write_COM (0xD603); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD604); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD605); LCD_Write_DATA (0x15); 
LCD_Write_COM (0xD606); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD607); LCD_Write_DATA (0x3B); 
LCD_Write_COM (0xD608); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD609); LCD_Write_DATA (0x6C); 
LCD_Write_COM (0xD60A); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xD60B); LCD_Write_DATA (0xC7); 
LCD_Write_COM (0xD60C); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD60D); LCD_Write_DATA (0x0D); 
LCD_Write_COM (0xD60E); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD60F); LCD_Write_DATA (0x61); 
LCD_Write_COM (0xD610); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD611); LCD_Write_DATA (0x94); 
LCD_Write_COM (0xD612); LCD_Write_DATA (0x01 );
LCD_Write_COM (0xD613); LCD_Write_DATA (0xD4); 
LCD_Write_COM (0xD614); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xD615); LCD_Write_DATA (0xFF); 
LCD_Write_COM (0xD616); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD617); LCD_Write_DATA (0x3C); 
LCD_Write_COM (0xD618); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD619); LCD_Write_DATA (0x69); 
LCD_Write_COM (0xD61A); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD61B); LCD_Write_DATA (0x6A); 
LCD_Write_COM (0xD61C); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD61D); LCD_Write_DATA (0x90); 
LCD_Write_COM (0xD61E); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD61F); LCD_Write_DATA (0xB5); 
LCD_Write_COM (0xD620); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD621); LCD_Write_DATA (0xCB); 
LCD_Write_COM (0xD622); LCD_Write_DATA (0x02 );
LCD_Write_COM (0xD623); LCD_Write_DATA (0xE2); 
LCD_Write_COM (0xD624); LCD_Write_DATA (0x02); 
LCD_Write_COM (0xD625); LCD_Write_DATA (0xF2); 
LCD_Write_COM (0xD626); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD627); LCD_Write_DATA (0x04); 
LCD_Write_COM (0xD628); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD629); LCD_Write_DATA (0x11); 
LCD_Write_COM (0xD62A); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD62B); LCD_Write_DATA (0x21); 
LCD_Write_COM (0xD62C); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD62D); LCD_Write_DATA (0x2D); 
LCD_Write_COM (0xD62E); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD62F); LCD_Write_DATA (0x3e); 
LCD_Write_COM (0xD630); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xD631); LCD_Write_DATA (0x64); 
LCD_Write_COM (0xD632); LCD_Write_DATA (0x03 );
LCD_Write_COM (0xD633); LCD_Write_DATA (0xFE); 

LCD_Write_COM (0xF000); LCD_Write_DATA (0x55); 
LCD_Write_COM (0xF001); LCD_Write_DATA (0xAA); 
LCD_Write_COM (0xF002); LCD_Write_DATA (0x52); 
LCD_Write_COM (0xF003); LCD_Write_DATA (0x08); 
LCD_Write_COM (0xF004); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xB400); LCD_Write_DATA (0x10); 
LCD_Write_COM (0xB500); LCD_Write_DATA (0x6B); 
LCD_Write_COM (0xB700); LCD_Write_DATA (0x77); 
LCD_Write_COM (0xB701); LCD_Write_DATA (0x77); 
LCD_Write_COM (0xb800); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xB801); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xB802); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xB803); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xBA00); LCD_Write_DATA (0x01); 
LCD_Write_COM (0xBC00); LCD_Write_DATA (0x00 );
LCD_Write_COM (0xBC01); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xBC02); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xCC00); LCD_Write_DATA (0x03); 
LCD_Write_COM (0xF000); LCD_Write_DATA (0x55); 
LCD_Write_COM (0xF001); LCD_Write_DATA (0xAA); 
LCD_Write_COM (0xF002); LCD_Write_DATA (0x52); 
LCD_Write_COM (0xF003); LCD_Write_DATA (0x08); 
LCD_Write_COM (0xF004); LCD_Write_DATA (0x00); 
LCD_Write_COM (0xF600); LCD_Write_DATA (0x60 ); 
LCD_Write_COM (0x3500); LCD_Write_DATA (0x00); 
LCD_Write_COM (0x3600); LCD_Write_DATA (0xA0); 
LCD_Write_COM (0x3A00); LCD_Write_DATA (0x55); 
LCD_Write_COM (0x1100); 
delay (120); 
LCD_Write_COM (0x2900); 
delay (100 );

Попробовал этот инит подсунуть в UTFT в ините для ili9327_8. Результата нет. Пробовал разные варианты библиотеки и перекидывать пины с порта С на А - результат тот же.

ХЗ что делать дальше. Либо инит не подходит, либо в библиотеке UTFT подключение не так настроено... весь день на это убил. Может что-то подскажите?

forfrends
Offline
Зарегистрирован: 24.02.2015

Непонятно что нужно этому дисплею! Дисплей молчит :(

Поставил оригинальную библиотеку UTFT, не правленную, подкинул туда иниты, но оказалось что она передает по 16-ти битной шине. Переводить дисплей в 16 бит как-то не хочется. Можно, конечно, но что-то мне подсказывает что это ни на что не повлияет. Голова уже кипит.

Вот еще инит нашел: https://github.com/nergzd723/ThunderKernel_Z170CG/blob/master/arch/x86/boot/dts/xgold/display/RM68180.dtsi

только мне не понятно назначение строчек типа:
intel,cmd-type = <0x39>;

Это что? команда или что-то еще? Так как во всех других инитах комады передают заначение, которое стоит первым в строке данных:
intel,cmd-data = <0xB3 0x09 0x09 0x09>;

Сейчас сижу и думаю что делать дальше: использовать оригинальную библиотеку и перевести дисплей в 16 бит? Или использовать его как есть и искать какую-то библиотеку на 8 бит? Тогда какую библиотеку посоветуете? Наверное все же переведу в 16 и буду пробовать все возможные иниты. Распиновка дисплея верная 100% сверял с равпиновкой на кристалле в даташите. Единственный нюанс: не могут ли биты быть перевернутыми? То есть Пины дисплея D0-D7 подключаться не к А0-А7, а наоборот к А7-А0? Хотя это было бы очень странно....

lawr
Offline
Зарегистрирован: 19.02.2017

forfrends, нaдо взять уже правленную UTFT (в начале темы их много выкладывал ув. slider ) под  8 битный дисплей с подменой инита. 

forfrends
Offline
Зарегистрирован: 24.02.2015

Попробовал библиотеку MCUFRIEND_kbv, примеры LCD_ID_readnew и LCD_ID_readreg возвращают нули:

Read Registers on MCUFRIEND UNO shield
controllers either read as single 16-bit
e.g. the ID is at readReg(0)
or as a sequence of 8-bit values
in special locations (first is dummy)

reg(0x0000) 00 00	ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 00 00 00 00	Manufacturer ID
reg(0x0009) 00 00 00 00 00	Status Register
reg(0x000A) 08 08	Get Power Mode
reg(0x000C) 00 00	Get Pixel Format
reg(0x0061) 00 00	RDID1 HX8347-G
reg(0x0062) 00 00	RDID2 HX8347-G
reg(0x0063) 00 00	RDID3 HX8347-G
reg(0x0064) 00 00	RDID1 HX8347-A
reg(0x0065) 00 00	RDID2 HX8347-A
reg(0x0066) 00 00	RDID3 HX8347-A
reg(0x0067) 00 00	RDID Himax HX8347-A
reg(0x0070) 00 00	Panel Himax HX8347-A
reg(0x00A1) 00 00 00 00 00	RD_DDB SSD1963
reg(0x00B0) 00 00	RGB Interface Signal Control
reg(0x00B4) 00 00	Inversion Control
reg(0x00B6) 00 00 00 00 00	Display Control
reg(0x00B7) 00 00	Entry Mode Set
reg(0x00BF) 00 00 00 00 00 00	ILI9481, HX8357-B
reg(0x00C0) 00 00 00 00 00 00 00 00 00	Panel Control
reg(0x00C8) 00 00 00 00 00 00 00 00 00 00 00 00 00	GAMMA
reg(0x00CC) 00 00	Panel Control
reg(0x00D0) 00 00 00	Power Control
reg(0x00D2) 00 00 00 00 00	NVM Read
reg(0x00D3) 00 00 00 00	ILI9341, ILI9488
reg(0x00D4) 00 00 00 00	Novatek ID
reg(0x00DA) 00 00	RDID1
reg(0x00DB) 00 00	RDID2
reg(0x00DC) 00 00	RDID3
reg(0x00E0) 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00	GAMMA-P
reg(0x00E1) 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00	GAMMA-N
reg(0x00EF) 00 00 00 00 00 00	ILI9327
reg(0x00F2) 00 00 00 00 00 00 00 00 00 00 00 00	Adjust Control 2
reg(0x00F6) 00 00 00 00	Interface Control

Остальные примеры не работают, так как библиотека настроена на UNO шилды:
// All the mcufriend.com UNO shields have the same pinout.
// i.e. control pins A0-A4.  Data D2-D9.  microSD D10-D13.

А для меня такое подключение крайне не удобно. Использую Arduino MEGA2560. 

Установил libraries СанСаныч от Slider  ( UTFT,UTouch,tinyFat,UTFT_tinyFAT,Adafruit_TFTLCD,SD )  3.95 TFT LCD for arduino mega 2560(ili9488) , там правленная библиотека UTFT, ее буду использовать.

Нет, я не уверены, что контроллер именно RM68180. Я в этом не силен. К заключению что контроллер RM68180 пришел slider, когда просматривал лог и фото дисплея.

lawr
Offline
Зарегистрирован: 19.02.2017

forfrends пишет:

Попробовал библиотеку MCUFRIEND_kbv, примеры LCD_ID_readnew и LCD_ID_readreg возвращает нули

Не читает. 

 

forfrends
Offline
Зарегистрирован: 24.02.2015

Но читалка версии 5.2 выдает следующее:

v5.2 read all register + read ID + TFT LCD test 
Using Adafruit 2.8" TFT Breakout Board Pinout
TFT size is 320x240
v5.2  Reading all registers + ID tft lcd  B0h=0x03(FF),=0x04 . from  Slider
 arduino.ru/forum/apparatnye-voprosy/arduino-i-displei-ot-sotikov-mobilnykh-telefonov 
 
reg  p1 p2 p3 p4 p5 p6 p7 p8  
00 = 0                       * 
01 = 0 
02 = 0 
03 = 0 
04 = 0                       * 
05 = 0 
06 = 0 
07 = 0 
08 = 0 
09 = 0 
0A = 08 08 08 08 08 08 08 08  
0B = 0 
0C = 07 07 07 07 07 07 07 07  
0D = 07 07 07 07 07 07 07 07  
0E = 0 
0F = 0 
10 = 0 
11 = 0 
12 = 0 
13 = 0 
14 = 0 
15 = 0 
16 = 0 
17 = 0 
18 = 0 
19 = 0 
1A = 0 
1B = 0 
1C = 0 
1D = 0 
1E = 0 
1F = 0 
20 = 0 
21 = 0 
22 = 0 
23 = 0 
24 = 0 
25 = 0 
26 = 01 01 01 01 01 01 01 01  
27 = 0 
28 = 0 
29 = 0 
2A = 0 
2B = 0 
2C = 0 
2D = 0 
2E = 0 
2F = 0 
30 = 0 
31 = 0 
32 = 0 
33 = 0 
34 = 0 
35 = 0 
36 = 0 
37 = 0 
38 = 0 
39 = 0 
3A = 07 07 07 07 07 07 07 07  
3B = 07 07 07 07 07 07 07 07  
3C = 0 
3D = 0 
3E = 0 
3F = 0 
40 = 0 
41 = 0 
42 = 0 
43 = 0 
44 = 0 
45 = 0 
46 = 0 
47 = 0 
48 = 0 
49 = 0 
4A = 0 
4B = 0 
4C = 0 
4D = 0 
4E = 0 
4F = 0 
50 = FF FF FF FF FF FF FF FF  
51 = 0 
52 = 0 
53 = 0 
54 = 0 
55 = 0 
56 = 0 
57 = FF FF FF FF FF FF FF FF  
58 = 01 01 01 01 01 01 01 01  
59 = 01 01 01 01 01 01 01 01  
5A = 0 
5B = 0 
5C = 0 
5D = 0 
5E = 0 
5F = 0 
60 = 0 
61 = 0 
62 = 0 
63 = 0 
64 = 0 
65 = 80 80 80 80 80 80 80 80  
66 = 80 80 80 80 80 80 80 80  
67 = 80 80 80 80 80 80 80 80  
68 = 0 
69 = 0 
6A = 0 
6B = 0 
6C = 0 
6D = 0 
6E = 0 
6F = 0 
70 = 0 
71 = 0 
72 = 0 
73 = 0 
74 = 0 
75 = 0 
76 = 0 
77 = 0 
78 = 0 
79 = 0 
7A = 0 
7B = 0 
7C = 0 
7D = 0 
7E = 0 
7F = 0 
80 = 0 
81 = 0 
82 = 0 
83 = 0 
84 = 0 
85 = 0 
86 = 0 
87 = 0 
88 = 0 
89 = 0 
8A = 0 
8B = 0 
8C = 0 
8D = 0 
8E = 0 
8F = 0 
90 = 0 
91 = 0 
92 = 0 
93 = 0 
94 = 0 
95 = 0 
96 = 0 
97 = 0 
98 = 0 
99 = 0 
9A = 0 
9B = 0 
9C = 0 
9D = 0 
9E = 0 
9F = 0 
A0 = 0 
A1 = 0 
A2 = 0 
A3 = 0 
A4 = 0 
A5 = 0 
A6 = 0 
A7 = 0 
A8 = 0 
A9 = 0 
AA = 0 
AB = 0 
AC = 0 
AD = 0 
AE = 0 
AF = 0 
B0 = 0 
B1 = 0 
B2 = 0 
B3 = 0 
B4 = 0 
B5 = 0 
B6 = 0 
B7 = 0 
B8 = 0 
B9 = 0 
BA = 0 
BB = 0 
BC = 0 
BD = 0 
BE = 0 
BF = 0                       * 
C0 = 0 
C1 = 0 
C2 = 0 
C3 = 0 
C4 = 0 
C5 = 0 
C6 = 0 
C7 = 0 
C8 = 0 
C9 = 0 
CA = 0 
CB = 0 
CC = 0 
CD = 0 
CE = 0 
CF = 0 
D0 = 0 
D1 = 0 
D2 = 0 
D3 = 0                       * 
D4 = 0 
D5 = 0 
D6 = 0 
D7 = 0 
D8 = 0 
D9 = 0 
DA = 0                       * 
DB = 80 80 80 80 80 80 80 80 ***** 
DC = 0                       * 
DD = 0 
DE = 0 
DF = 0 
E0 = 0 
E1 = 0 
E2 = 0 
E3 = 0 
E4 = 0 
E5 = 0 
E6 = 0 
E7 = 0 
E8 = 0 
E9 = 0 
EA = 0 
EB = 0 
EC = 0 
ED = 0 
EE = 0 
EF = 0                       * 
F0 = 0 
F1 = 0 
F2 = 0 
F3 = 0 
F4 = 0 
F5 = 0 
F6 = 0 
F7 = 0 
F8 = 0 
F9 = 0 
FA = 0 
FB = 0 
FC = 0 
FD = 0 
FE = 0 
 
00 = 0                       * 
04 = 0                       * 
B0 = 0 
BF = 0                       * 
D3 = 0                       * 
DA = 0                       * 
DB = 80 80 80 80 80 80 80 80 ***** 
DC = 0                       * 
EF = 0                       * 
 . . . . . . . 
  writing in Manufacturer Command Access Protect  (B0h) <- 0xFFFFFF  
B0 = 0 
Device Code Read (BFh)  
BF = 0                       * 
 . . . 
 
reg  p1 p2 p3 p4 p5 p6 p7 p8  
B0 = 0 
B1 = 0 
B2 = 0 
B3 = 0 
B4 = 0 
B5 = 0 
B6 = 0 
B7 = 0 
B8 = 0 
B9 = 0 
BA = 0 
BB = 0 
BC = 0 
BD = 0 
BE = 0 
BF = 0                       * 
C0 = 0 
C1 = 0 
C2 = 0 
C3 = 0 
C4 = 0 
C5 = 0 
C6 = 0 
C7 = 0 
C8 = 0 
C9 = 0 
CA = 0 
CB = 0 
CC = 0 
CD = 0 
CE = 0 
CF = 0 
D0 = 0 
D1 = 0 
D2 = 0 
D3 = 0                       * 
D4 = 0 
D5 = 0 
D6 = 0 
D7 = 0 
D8 = 0 
D9 = 0 
DA = 0                       * 
DB = 0                       * 
DC = 0                       * 
DD = 0 
DE = 0 
DF = 0 
E0 = 0 
E1 = 0 
E2 = 0 
E3 = 0 
E4 = 0 
E5 = 0 
E6 = 0 
E7 = 0 
E8 = 0 
E9 = 0 
EA = 0 
EB = 0 
EC = 0 
ED = 0 
EE = 0 
EF = 0                       * 
F0 = 0 
F1 = 0 
F2 = 0 
F3 = 0 
F4 = 0 
F5 = 0 
F6 = 0 
F7 = 0 
F8 = 0 
F9 = 0 
FA = 0 
FB = 0 
FC = 0 
FD = 0 
FE = 0 
 writing in Manufacturer Command Access Protect  (B0h) <- 0x040404  
B0 = 0 
Device Code Read (BFh)  
BF = 0                       * 
 . . . 
 
reg  p1 p2 p3 p4 p5 p6 p7 p8  
B0 = 0 
B1 = 0 
B2 = 0 
B3 = 0 
B4 = 0 
B5 = 0 
B6 = 0 
B7 = 0 
B8 = 0 
B9 = 0 
BA = 0 
BB = 0 
BC = 0 
BD = 0 
BE = 0 
BF = 0                       * 
C0 = 0 
C1 = 0 
C2 = 0 
C3 = 0 
C4 = 0 
C5 = 0 
C6 = 0 
C7 = 0 
C8 = 0 
C9 = 0 
CA = 0 
CB = 0 
CC = 0 
CD = 0 
CE = 0 
CF = 0 
D0 = 0 
D1 = 0 
D2 = 0 
D3 = 0                       * 
D4 = 0 
D5 = 0 
D6 = 0 
D7 = 0 
D8 = 0 
D9 = 0 
DA = 0                       * 
DB = 0                       * 
DC = 0                       * 
DD = 0 
DE = 0 
DF = 0 
E0 = 0 
E1 = 0 
E2 = 0 
E3 = 0 
E4 = 0 
E5 = 0 
E6 = 0 
E7 = 0 
E8 = 0 
E9 = 0 
EA = 0 
EB = 0 
EC = 0 
ED = 0 
EE = 0 
EF = 0                       * 
F0 = 0 
F1 = 0 
F2 = 0 
F3 = 0 
F4 = 0 
F5 = 0 
F6 = 0 
F7 = 0 
F8 = 0 
F9 = 0 
FA = 0 
FB = 0 
FC = 0 
FD = 0 
FE = 0 
 
Unknown LCD driver chip: 0
***use minimal init as driver ili9341 ili9488 *** ->
Benchmark                Time (microseconds)
Screen fill              1119000
Text                     319656
Lines                    3138868
Horiz/Vert Lines         107836
Rectangles (outline)     79884
Rectangles (filled)      2365696
Circles (filled)         1025184
Circles (outline)        1358816
Triangles (outline)      994892
Triangles (filled)       1395252
Rounded rects (outline)  456452
Rounded rects (filled)   2793896
Done!

При этом подключение к Ардуино Мега такое:

RES			41
RD			42 (или к +3.3в)
WR			39
RS (DC)		38
CS			40
D0-D7		22-29

Почему MCUFRIEND_kbv не видит - не скажу так как  в скетче прописывал все пины (как управления так и данных)

forfrends
Offline
Зарегистрирован: 24.02.2015

СТОП-СТОП-СТОП!!! Сейчас повторно загрузил читалку 5.2, и с удивлением увидел помехи!!!

 

Эти помехи проскакивают всего лишь 3 раза на доли секунды, по этому раньше их не замечал (надо смотреть и не отводить взгляд). Даже сфотографировать не с первого раза получилось.

Значит дисплей живой, подключение верное, только инит нужен правильный.

Попробовал повторить данный эффект - не вышло. ХЗ почему.... Еще раз перепроверил контакты и подключение. Все ок. Обрывов, коротышей и непропая нет. Скорее всего что какой-то из предыдущих проб использовал более-менее подходящий инит, благодаря которому графический тест в читалке выдал такой результат.

lawr
Offline
Зарегистрирован: 19.02.2017

forfrends, по этой ссылке: http://bbs.elecfans.com/jishu_521566_1_1.html лежит даташит на RM68180 и инит на него. 

forfrends
Offline
Зарегистрирован: 24.02.2015

Да, знакомая страница. И инит тоже. Этот инит я использовал самым первым, на который вы написали что он странный. Меня он смущает тем что перед каждой передачей данный передается команда. Это обязательно перед данными отправлять команду? Или это указания конкретного регистра? Кстати, есть некоторые непонятки для меня в этом ините (весь его еще не проверил, слишком большой). Вот, на пример, строки ближе к концу:

LCD_Cmd_wr(0xF000); LCD_para_wr(0x55);

LCD_Cmd_wr(0xF001); LCD_para_wr(0xAA);

LCD_Cmd_wr(0xF002); LCD_para_wr(0x52);

LCD_Cmd_wr(0xF003); LCD_para_wr(0x08);

LCD_Cmd_wr(0xF004); LCD_para_wr(0x02);这里估计有错,改为LCD_para_wr(0x00);

В даташите можно найти команду "F000h", это "MAUCCTR (F000h~F004h): Manufacture Command Set Control", 146-я страница. Там же приведены стандартные значения для регистров (дальше буду "комады" типа "F000h" называть регистрами, чтобы было понятнее). На странице 147 указаны стандартные значения регитсров F000h~F004h, то можно увидеть что для F003h указано значение 00h, и для F004h - 00h. В то же время в ините для F003h указано значение 08h. Это установка бита MAUC (D3), что разрешает использование заводских команд: "Manufacture Command Set enable". А для чего это? Если по умолчанию этот режим отключен.
Дальше, для регистра F004h в ините задано значение 02h, и это мне немного не понятно. Дисплей имеет 2 "Page":
Page 0 : User Command Set Description for Page 0
и
Page 1 : Manufacture Command Set Description for Page 1

что дает это переключение между страницами для меня не понятно...

forfrends
Offline
Зарегистрирован: 24.02.2015

Попробовал инит взяты здесь: http://bbs.elecfans.com/jishu_521566_1_1.html

LCD_Write_COM(0xF000); LCD_Write_DATA(0x55);
LCD_Write_COM(0xF001); LCD_Write_DATA(0xAA);
LCD_Write_COM(0xF002); LCD_Write_DATA(0x52);
LCD_Write_COM(0xF003); LCD_Write_DATA(0x08);
LCD_Write_COM(0xF004); LCD_Write_DATA(0x01);
LCD_Write_COM(0xB000); LCD_Write_DATA(0x05);
LCD_Write_COM(0xB001); LCD_Write_DATA(0x05);
LCD_Write_COM(0xB002); LCD_Write_DATA(0x05);
LCD_Write_COM(0xB100); LCD_Write_DATA(0x05);
LCD_Write_COM(0xB101); LCD_Write_DATA(0x05);
LCD_Write_COM(0xB102); LCD_Write_DATA(0x05);
LCD_Write_COM(0xB300); LCD_Write_DATA(0x08);
LCD_Write_COM(0xB301); LCD_Write_DATA(0x08);
LCD_Write_COM(0xB302); LCD_Write_DATA(0x08);
LCD_Write_COM(0xB500); LCD_Write_DATA(0x08);
LCD_Write_COM(0xB501); LCD_Write_DATA(0x08);
LCD_Write_COM(0xB502); LCD_Write_DATA(0x08);
LCD_Write_COM(0xB600); LCD_Write_DATA(0x54);
LCD_Write_COM(0xB601); LCD_Write_DATA(0x54);
LCD_Write_COM(0xB602); LCD_Write_DATA(0x54);
LCD_Write_COM(0xB700); LCD_Write_DATA(0x44);
LCD_Write_COM(0xB701); LCD_Write_DATA(0x44);
LCD_Write_COM(0xB702); LCD_Write_DATA(0x44);
LCD_Write_COM(0xB800); LCD_Write_DATA(0x34);
LCD_Write_COM(0xB801); LCD_Write_DATA(0x34);
LCD_Write_COM(0xB802); LCD_Write_DATA(0x34);
LCD_Write_COM(0xB900); LCD_Write_DATA(0x34);
LCD_Write_COM(0xB901); LCD_Write_DATA(0x34);
LCD_Write_COM(0xB902); LCD_Write_DATA(0x34);
LCD_Write_COM(0xBA00); LCD_Write_DATA(0x24);
LCD_Write_COM(0xBA01); LCD_Write_DATA(0x24);
LCD_Write_COM(0xBA02); LCD_Write_DATA(0x24);
LCD_Write_COM(0xBC00); LCD_Write_DATA(0x00);
LCD_Write_COM(0xBC01); LCD_Write_DATA(0xA0);
LCD_Write_COM(0xBC02); LCD_Write_DATA(0x00);
LCD_Write_COM(0xBD00); LCD_Write_DATA(0x00);
LCD_Write_COM(0xBD01); LCD_Write_DATA(0xA0);
LCD_Write_COM(0xBD02); LCD_Write_DATA(0x00);
LCD_Write_COM(0xBE00); LCD_Write_DATA(0x00);
LCD_Write_COM(0xBE01); LCD_Write_DATA(0x58);
LCD_Write_COM(0xBF00); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD100); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD101); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD102); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD103); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD104); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD105); LCD_Write_DATA(0x15);
LCD_Write_COM(0xD106); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD107); LCD_Write_DATA(0x3B);
LCD_Write_COM(0xD108); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD109); LCD_Write_DATA(0x6C);
LCD_Write_COM(0xD10A); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD10B); LCD_Write_DATA(0xC7);
LCD_Write_COM(0xD10C); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD10D); LCD_Write_DATA(0x0D);
LCD_Write_COM(0xD10E); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD10F); LCD_Write_DATA(0x61);
LCD_Write_COM(0xD110); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD111); LCD_Write_DATA(0x94);
LCD_Write_COM(0xD112); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD113); LCD_Write_DATA(0xD4);
LCD_Write_COM(0xD114); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD115); LCD_Write_DATA(0xFF);
LCD_Write_COM(0xD116); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD117); LCD_Write_DATA(0x3C);
LCD_Write_COM(0xD118); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD119); LCD_Write_DATA(0x69);
LCD_Write_COM(0xD11A); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD11B); LCD_Write_DATA(0x6A);
LCD_Write_COM(0xD11C); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD11D); LCD_Write_DATA(0x90);
LCD_Write_COM(0xD11E); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD11F); LCD_Write_DATA(0xB5);
LCD_Write_COM(0xD120); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD121); LCD_Write_DATA(0xCB);
LCD_Write_COM(0xD122); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD123); LCD_Write_DATA(0xE2);
LCD_Write_COM(0xD124); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD125); LCD_Write_DATA(0xF2);
LCD_Write_COM(0xD126); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD127); LCD_Write_DATA(0x04);
LCD_Write_COM(0xD128); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD129); LCD_Write_DATA(0x11);
LCD_Write_COM(0xD12A); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD12B); LCD_Write_DATA(0x21);
LCD_Write_COM(0xD12C); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD12D); LCD_Write_DATA(0x2D);
LCD_Write_COM(0xD12E); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD12F); LCD_Write_DATA(0x3E);
LCD_Write_COM(0xD130); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD131); LCD_Write_DATA(0x64);
LCD_Write_COM(0xD132); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD133); LCD_Write_DATA(0xFE);
LCD_Write_COM(0xD200); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD201); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD202); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD203); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD204); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD205); LCD_Write_DATA(0x15);
LCD_Write_COM(0xD206); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD207); LCD_Write_DATA(0x3B);
LCD_Write_COM(0xD208); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD209); LCD_Write_DATA(0x6C);
LCD_Write_COM(0xD20A); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD20B); LCD_Write_DATA(0xC7);
LCD_Write_COM(0xD20C); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD20D); LCD_Write_DATA(0x0D);
LCD_Write_COM(0xD20E); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD20F); LCD_Write_DATA(0x61);
LCD_Write_COM(0xD210); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD211); LCD_Write_DATA(0x94);
LCD_Write_COM(0xD212); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD213); LCD_Write_DATA(0xD4);
LCD_Write_COM(0xD214); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD215); LCD_Write_DATA(0xFF);
LCD_Write_COM(0xD216); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD217); LCD_Write_DATA(0x3C);
LCD_Write_COM(0xD218); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD219); LCD_Write_DATA(0x69);
LCD_Write_COM(0xD21A); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD21B); LCD_Write_DATA(0x6A);
LCD_Write_COM(0xD21C); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD21D); LCD_Write_DATA(0x90);
LCD_Write_COM(0xD21E); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD21F); LCD_Write_DATA(0xB5);
LCD_Write_COM(0xD220); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD221); LCD_Write_DATA(0xCB);
LCD_Write_COM(0xD222); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD223); LCD_Write_DATA(0xE2);
LCD_Write_COM(0xD224); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD225); LCD_Write_DATA(0xF2);
LCD_Write_COM(0xD226); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD227); LCD_Write_DATA(0x04);
LCD_Write_COM(0xD228); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD229); LCD_Write_DATA(0x11);
LCD_Write_COM(0xD22A); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD22B); LCD_Write_DATA(0x21);
LCD_Write_COM(0xD22C); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD22D); LCD_Write_DATA(0x2D);
LCD_Write_COM(0xD22E); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD22F); LCD_Write_DATA(0x3E);
LCD_Write_COM(0xD230); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD231); LCD_Write_DATA(0x64);
LCD_Write_COM(0xD232); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD233); LCD_Write_DATA(0xFE);
LCD_Write_COM(0xD300); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD301); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD302); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD303); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD304); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD305); LCD_Write_DATA(0x15);
LCD_Write_COM(0xD306); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD307); LCD_Write_DATA(0x3B);
LCD_Write_COM(0xD308); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD309); LCD_Write_DATA(0x6C);
LCD_Write_COM(0xD30A); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD30B); LCD_Write_DATA(0xC7);
LCD_Write_COM(0xD30C); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD30D); LCD_Write_DATA(0x0D);
LCD_Write_COM(0xD30E); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD30F); LCD_Write_DATA(0x61);
LCD_Write_COM(0xD310); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD311); LCD_Write_DATA(0x94);
LCD_Write_COM(0xD312); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD313); LCD_Write_DATA(0xD4);
LCD_Write_COM(0xD314); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD315); LCD_Write_DATA(0xFF);
LCD_Write_COM(0xD316); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD317); LCD_Write_DATA(0x3C);
LCD_Write_COM(0xD318); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD319); LCD_Write_DATA(0x69);
LCD_Write_COM(0xD31A); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD31B); LCD_Write_DATA(0x6A);
LCD_Write_COM(0xD31C); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD31D); LCD_Write_DATA(0x90);
LCD_Write_COM(0xD31E); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD31F); LCD_Write_DATA(0xB5);
LCD_Write_COM(0xD320); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD321); LCD_Write_DATA(0xCB);
LCD_Write_COM(0xD322); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD323); LCD_Write_DATA(0xE2);
LCD_Write_COM(0xD324); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD325); LCD_Write_DATA(0xF2);
LCD_Write_COM(0xD326); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD327); LCD_Write_DATA(0x04);
LCD_Write_COM(0xD328); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD329); LCD_Write_DATA(0x11);
LCD_Write_COM(0xD32A); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD32B); LCD_Write_DATA(0x21);
LCD_Write_COM(0xD32C); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD32D); LCD_Write_DATA(0x2D);
LCD_Write_COM(0xD32E); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD32F); LCD_Write_DATA(0x3E);
LCD_Write_COM(0xD330); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD331); LCD_Write_DATA(0x64);
LCD_Write_COM(0xD332); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD333); LCD_Write_DATA(0xFE);
LCD_Write_COM(0xD400); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD401); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD402); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD403); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD404); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD405); LCD_Write_DATA(0x15);
LCD_Write_COM(0xD406); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD407); LCD_Write_DATA(0x3B);
LCD_Write_COM(0xD408); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD409); LCD_Write_DATA(0x6C);
LCD_Write_COM(0xD40A); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD40B); LCD_Write_DATA(0xC7);
LCD_Write_COM(0xD40C); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD40D); LCD_Write_DATA(0x0D);
LCD_Write_COM(0xD40E); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD40F); LCD_Write_DATA(0x61);
LCD_Write_COM(0xD410); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD411); LCD_Write_DATA(0x94);
LCD_Write_COM(0xD412); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD413); LCD_Write_DATA(0xD4);
LCD_Write_COM(0xD414); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD415); LCD_Write_DATA(0xFF);
LCD_Write_COM(0xD416); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD417); LCD_Write_DATA(0x3C);
LCD_Write_COM(0xD418); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD419); LCD_Write_DATA(0x69);
LCD_Write_COM(0xD41A); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD41B); LCD_Write_DATA(0x6A);
LCD_Write_COM(0xD41C); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD41D); LCD_Write_DATA(0x90);
LCD_Write_COM(0xD41E); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD41F); LCD_Write_DATA(0xB5);
LCD_Write_COM(0xD420); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD421); LCD_Write_DATA(0xCB);
LCD_Write_COM(0xD422); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD423); LCD_Write_DATA(0xE2);
LCD_Write_COM(0xD424); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD425); LCD_Write_DATA(0xF2);
LCD_Write_COM(0xD426); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD427); LCD_Write_DATA(0x04);
LCD_Write_COM(0xD428); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD429); LCD_Write_DATA(0x11);
LCD_Write_COM(0xD42A); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD42B); LCD_Write_DATA(0x21);
LCD_Write_COM(0xD42C); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD42D); LCD_Write_DATA(0x2D);
LCD_Write_COM(0xD42E); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD42F); LCD_Write_DATA(0x3E);
LCD_Write_COM(0xD430); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD431); LCD_Write_DATA(0x64);
LCD_Write_COM(0xD432); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD433); LCD_Write_DATA(0xFE);
LCD_Write_COM(0xD500); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD501); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD502); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD503); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD504); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD505); LCD_Write_DATA(0x15);
LCD_Write_COM(0xD506); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD507); LCD_Write_DATA(0x3B);
LCD_Write_COM(0xD508); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD509); LCD_Write_DATA(0x6C);
LCD_Write_COM(0xD50A); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD50B); LCD_Write_DATA(0xC7);
LCD_Write_COM(0xD50C); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD50D); LCD_Write_DATA(0x0D);
LCD_Write_COM(0xD50E); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD50F); LCD_Write_DATA(0x61);
LCD_Write_COM(0xD510); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD511); LCD_Write_DATA(0x94);
LCD_Write_COM(0xD512); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD513); LCD_Write_DATA(0xD4);
LCD_Write_COM(0xD514); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD515); LCD_Write_DATA(0xFF);
LCD_Write_COM(0xD516); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD517); LCD_Write_DATA(0x3C);
LCD_Write_COM(0xD518); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD519); LCD_Write_DATA(0x69);
LCD_Write_COM(0xD51A); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD51B); LCD_Write_DATA(0x6A);
LCD_Write_COM(0xD51C); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD51D); LCD_Write_DATA(0x90);
LCD_Write_COM(0xD51E); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD51F); LCD_Write_DATA(0xB5);
LCD_Write_COM(0xD520); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD521); LCD_Write_DATA(0xCB);
LCD_Write_COM(0xD522); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD523); LCD_Write_DATA(0xE2);
LCD_Write_COM(0xD524); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD525); LCD_Write_DATA(0xF2);
LCD_Write_COM(0xD526); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD527); LCD_Write_DATA(0x04);
LCD_Write_COM(0xD528); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD529); LCD_Write_DATA(0x11);
LCD_Write_COM(0xD52A); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD52B); LCD_Write_DATA(0x21);
LCD_Write_COM(0xD52C); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD52D); LCD_Write_DATA(0x2D);
LCD_Write_COM(0xD52E); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD52F); LCD_Write_DATA(0x3E);
LCD_Write_COM(0xD530); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD531); LCD_Write_DATA(0x64);
LCD_Write_COM(0xD532); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD533); LCD_Write_DATA(0xFE);
LCD_Write_COM(0xD600); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD601); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD602); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD603); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD604); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD605); LCD_Write_DATA(0x15);
LCD_Write_COM(0xD606); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD607); LCD_Write_DATA(0x3B);
LCD_Write_COM(0xD608); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD609); LCD_Write_DATA(0x6C);
LCD_Write_COM(0xD60A); LCD_Write_DATA(0x00);
LCD_Write_COM(0xD60B); LCD_Write_DATA(0xC7);
LCD_Write_COM(0xD60C); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD60D); LCD_Write_DATA(0x0D);
LCD_Write_COM(0xD60E); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD60F); LCD_Write_DATA(0x61);
LCD_Write_COM(0xD610); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD611); LCD_Write_DATA(0x94);
LCD_Write_COM(0xD612); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD613); LCD_Write_DATA(0xD4);
LCD_Write_COM(0xD614); LCD_Write_DATA(0x01);
LCD_Write_COM(0xD615); LCD_Write_DATA(0xFF);
LCD_Write_COM(0xD616); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD617); LCD_Write_DATA(0x3C);
LCD_Write_COM(0xD618); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD619); LCD_Write_DATA(0x69);
LCD_Write_COM(0xD61A); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD61B); LCD_Write_DATA(0x6A);
LCD_Write_COM(0xD61C); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD61D); LCD_Write_DATA(0x90);
LCD_Write_COM(0xD61E); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD61F); LCD_Write_DATA(0xB5);
LCD_Write_COM(0xD620); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD621); LCD_Write_DATA(0xCB);
LCD_Write_COM(0xD622); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD623); LCD_Write_DATA(0xE2);
LCD_Write_COM(0xD624); LCD_Write_DATA(0x02);
LCD_Write_COM(0xD625); LCD_Write_DATA(0xF2);
LCD_Write_COM(0xD626); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD627); LCD_Write_DATA(0x04);
LCD_Write_COM(0xD628); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD629); LCD_Write_DATA(0x11);
LCD_Write_COM(0xD62A); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD62B); LCD_Write_DATA(0x21);
LCD_Write_COM(0xD62C); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD62D); LCD_Write_DATA(0x2D);
LCD_Write_COM(0xD62E); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD62F); LCD_Write_DATA(0x3E);
LCD_Write_COM(0xD630); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD631); LCD_Write_DATA(0x64);
LCD_Write_COM(0xD632); LCD_Write_DATA(0x03);
LCD_Write_COM(0xD633); LCD_Write_DATA(0xFE);

LCD_Write_COM(0xF000); LCD_Write_DATA(0x55);
LCD_Write_COM(0xF001); LCD_Write_DATA(0xAA);
LCD_Write_COM(0xF002); LCD_Write_DATA(0x52);
LCD_Write_COM(0xF003); LCD_Write_DATA(0x08);
LCD_Write_COM(0xF004); LCD_Write_DATA(0x00);
LCD_Write_COM(0xB400); LCD_Write_DATA(0x10);
LCD_Write_COM(0xB500); LCD_Write_DATA(0x6B);
LCD_Write_COM(0xB700); LCD_Write_DATA(0x77);
LCD_Write_COM(0xB701); LCD_Write_DATA(0x77);
LCD_Write_COM(0xB800); LCD_Write_DATA(0x01);
LCD_Write_COM(0xB801); LCD_Write_DATA(0x03);
LCD_Write_COM(0xB802); LCD_Write_DATA(0x03);
LCD_Write_COM(0xB803); LCD_Write_DATA(0x03);
LCD_Write_COM(0xBA00); LCD_Write_DATA(0x01);
LCD_Write_COM(0xBC00); LCD_Write_DATA(0x00);
LCD_Write_COM(0xBC01); LCD_Write_DATA(0x00);
LCD_Write_COM(0xBC02); LCD_Write_DATA(0x00);
LCD_Write_COM(0xCC00); LCD_Write_DATA(0x03);
LCD_Write_COM(0xF000); LCD_Write_DATA(0x55);
LCD_Write_COM(0xF001); LCD_Write_DATA(0xAA);
LCD_Write_COM(0xF002); LCD_Write_DATA(0x52);
LCD_Write_COM(0xF003); LCD_Write_DATA(0x08);
LCD_Write_COM(0xF004); LCD_Write_DATA(0x02);//这里估计有错,改为LCD_para_wr(0x00);
LCD_Write_COM(0xF600); LCD_Write_DATA(0x60);
LCD_Write_COM(0x3500); LCD_Write_DATA(0x00);
LCD_Write_COM(0x3600); LCD_Write_DATA(0xA0);
LCD_Write_COM(0x3A00); LCD_Write_DATA(0x55);
LCD_Write_COM(0x1100);
delay(120);
LCD_Write_COM(0x2900);
delay(100);

Используемая библиотека:  libraries СанСаныч от Slider  ( UTFT,UTouch,tinyFat,UTFT_tinyFAT,Adafruit_TFTLCD,SD )  3.95 TFT LCD for arduino mega 2560(ili9488)

инит прописал в файл \Arduino\libraries\UTFT\tft_drivers\ili9327_8\initlcd.h

В скетче указал подключение: UTFT myGLCD(31, 38, 39, 40, 41);

результата нет :(

lawr
Offline
Зарегистрирован: 19.02.2017

/

croc19
Offline
Зарегистрирован: 17.02.2017

Внесу свои 5 копеек. Этот контроллер имеет 16 разрядные регистры. Не знаю как работают ардуиновские библиотеки,

но при 16 разрядных регистрах дисплея и 8 битной шине, нужно соответственно два раза по 8 бит отправлять адрес регистра

в который будешь писать значение. Обычно младший байт первым. Но последовательность младший первый или старший

нужно смотреть в даташите. Контроллер ILI9341 имеет ( вроде не ошибаюсь ) 8 битные регистры. Используя его  ты посылаешь

контроллеру половину адреса регистра. Соответственно контроллер 16 битный не понимает в какой регистр писать. 

Простой способ, переключить дисплей в 16 битный режим и писать сразу адрес регистра. Когда запустится, тогда колдовать

с 8 битным режимом.

Насчет страниц. Пока тебя интересует страница пользователя (User Command Set).

LCD_Cmd_wr(0xF000) -- посылаешь команду писать в регистр F000

 LCD_para_wr(0x55) --  пишешь данные 0x55

Второй вариант.____

Контроллер с 16 битными регистрами ST7793.  Он должен быть в библиотеке ардуиновской.

Возможно там есть 8 битный режим. Использовать его, но с инитом для твоего.

slider
Offline
Зарегистрирован: 17.06.2014

forfrends, о , подопытный 2018 года :)))  с предположениями на page=40#comment-406392

1. видно на фото провода китайские , дообожмите их ( иногда китайцы даже не снимая изоляции обжимают , там вообще 100% неконтакт , иногда недообжимают ) 
2. это точно рабочий дисп ? 
3. после подходящего инита должны запуститься dc-dc дисплея ( на шлейфе на кондёрах должны быть отрицательное напряжение и много положительное , для работы LCD матрицы) 
4. про особенности 16битности регистров эт да, как дельно приметил croc19.  ( или если UTFT пилить. то попробовать переключить дисплей на 16бит и как в сообщении #3  адресовать 16бит регистры . )

или попробовать добавить в либу , в место где она посылает адрес регистра , чтоб еще посылала 00 . 
5. пробуйте библиотеку GxTFT , но для серьезных диспов 480*800 понадобится ей другое железо DUE,  STM32F1 , STM32F4 .
начиная с версии библиотеки 2.0.1  как раз таки добавлены 16-битные передачи команд во все классы GxIO для параллельных 16-битных интерфейсов для поддержки OTM8009  .
сейчас версия 2.0.3 , на гитхабе.

в разных примерах для своего железа , разные диспы 
надо раскомментить нужные строчки . в общем найдете в сети её использование.
если дисп серьёзный , то скетч скомпилится только для серьёзного железа .

начало общего примера GxTFT_graphicstest , для понимания сколько там всего есть :

// select one GxIO class (or select a pre-configured display below)
//#include <GxIO/GxIO_DUE_P16_DUESHIELD/GxIO_DUE_P16_DUESHIELD.h>
//#include <GxIO/GxIO_DUE_P16_HVGASHIELD/GxIO_DUE_P16_HVGASHIELD.h>
//#include <GxIO/GxIO_DUE_P16_TIKY/GxIO_DUE_P16_TIKY.h>
//#include <GxIO/GxIO_DUE_P16_WIRED/GxIO_DUE_P16_WIRED.h>
//#include <GxIO/GxIO_MEGA_P16_MEGASHIELD/GxIO_MEGA_P16_MEGASHIELD.h>
//#include <GxIO/GxIO_SPI/GxIO_SPI.h>
//#include <GxIO/GxIO_STM32F103C8T6_P16_TIKY/GxIO_STM32F103C8T6_P16_TIKY.h>
//#include <GxIO/GxIO_STM32F103V_P16_TIKY/GxIO_STM32F103V_P16_TIKY.h>
//#include <GxIO/GxIO_STM32F407V_P16/GxIO_STM32F407V_P16.h>
//#include <GxIO/GxIO_UNO_P8_SHIELD/GxIO_UNO_P8_SHIELD.h>

//#include <GxIO/STM32DUINO/GxIO_STM32F1_FSMC/GxIO_STM32F1_FSMC.h>
//#include <GxIO/STM32GENERIC/GxIO_STM32F1_FSMC/GxIO_STM32F1_FSMC.h>
//#include <GxIO/STM32DUINO/GxIO_STM32F4_FSMC/GxIO_STM32F4_FSMC.h>
//#include <GxIO/STM32GENERIC/GxIO_STM32F4_FSMC/GxIO_STM32F4_FSMC.h>

//#include <GxIO/STM32GENERIC/GxIO_STM32F407ZGM4_P16/GxIO_STM32F407ZGM4_P16.h>
//#include <GxIO/STM32GENERIC/GxIO_STM32F407ZGM4_FSMC/GxIO_STM32F407ZGM4_FSMC.h>


// select one GxCTRL class (or select a pre-configured display below)
//#include <GxCTRL/GxCTRL_HX8357B/GxCTRL_HX8357B.h>
//#include <GxCTRL/GxCTRL_HX8357C/GxCTRL_HX8357C.h>
//#include <GxCTRL/GxCTRL_ILI9341/GxCTRL_ILI9341.h> // 240x320
//#include <GxCTRL/GxCTRL_ILI9481/GxCTRL_ILI9481.h> // HVGA 320x480
//#include <GxCTRL/GxCTRL_ILI9486/GxCTRL_ILI9486.h> // 320x480 e.g. 3.5inch RPI Display
//#include <GxCTRL/GxCTRL_ILI9806/GxCTRL_ILI9806.h> // 854x480 e.g. Tiky 5" TFT from Ruijia Industry
//#include <GxCTRL/GxCTRL_SSD1963/GxCTRL_SSD1963.h> // 320x480 e.g. 3.5inch RPI Display
//#include <GxCTRL/GxCTRL_OTM8009A/GxCTRL_OTM8009A.h> // 800x480 e.g. "IPS 3.97 inch 16.7M HD TFT" from Ruijia Industry
//#include <GxCTRL/GxCTRL_OTM8009A_RV047/GxCTRL_OTM8009A_RV047.h> // 854x480 e.g. RV047 4.7" TFT from Ruijia Industry

// create instance for the selected GxIO class  (or select a pre-configured display below)
//GxIO_Class io; // #define GxIO_Class is in the selected header file

// or create instance for SPI, the constructor needs parameters (or ...)
//GxIO_SPI(SPIClass& spi, int8_t cs, int8_t dc, int8_t rst = -1, int8_t bl = -1);
//GxIO_Class io(SPI, SS, D4, D3); // 480x320 3.5inch RPI Display on Wemos D1 (ESP8266)

// create instance for the selected GxCTRL class  (or select a pre-configured display below)
//GxCTRL_Class controller(io); // #define GxCTRL_Class is in the selected header file

// select one or adapt (or select a pre-configured display below)
//TFT_Class tft(io, controller, 240, 320); // portrait 240x320
//TFT_Class tft(io, controller, 320, 240); // landscape 240x320
//TFT_Class tft(io, controller, 320, 480); // portrait HVGA 320x480 or 3.5inch RPI Display
//TFT_Class tft(io, controller, 480, 320); // landscape HVGA 320x480 or 3.5inch RPI Display
//TFT_Class tft(io, controller, 480, 800); // portrait 800x480 7inch Display
//TFT_Class tft(io, controller, 800, 480); // landscape 800x480 7inch Display
//TFT_Class tft(io, controller, 480, 854); // portrait 854x480 e.g. Tiky 5" TFT from Ruijia Industry
//TFT_Class tft(io, controller, 854, 480); // landscape 854x480 e.g. Tiky 5" TFT from Ruijia Industry

// or select a pre-configured display header
//#include "myTFTs/my_2.4_TFT_mcufriend_UNO.h"
//#include "myTFTs/my_2.8_blue_ili9341_UNO.h"
//#include "myTFTs/my_3.2_TFT_320x240_ILI9341_STM32F4.h"
//#include "myTFTs/my_3.2_TFT_320x240_ILI9341_STM32F407ZGM4_FSMC.h"
//#include "myTFTs/my_3.5_TFT_LCD_Shield_UNO.h"
//#include "myTFTs/my_3.5_RPi_480x320_ESP.h"
//#include "myTFTs/my_3.5_RPi_480x320_DUE.h"
//#include "myTFTs/my_3.5_RPi_480x320_STM.h" // not yet ok
//#include "myTFTs/my_3.5_HVGA_480x320_MEGA.h"
//#include "myTFTs/my_3.5_HVGA_480x320_DUE_direct.h"
//#include "myTFTs/my_3.5_TFT_480x320_ILI9486_STM32F407ZGM4_FSMC.h"
//#include "myTFTs/my_3.97_800x480_OTM8009A_STM32F407ZGM4_FSMC.h"
//#include "myTFTs/my_4.7_854x480_OTM8009A_STM32F407ZGM4_FSMC.h"
//#include "myTFTs/my_5_Tiky_854x480_DUE.h"
//#include "myTFTs/my_5_Tiky_854x480_STM32F103C.h"
//#include "myTFTs/my_5_Tiky_854x480_STM32F103V.h"
//#include "myTFTs/my_7_SSD1963_800x480_DUE.h"
//#include "myTFTs/my_7_Waveshare_800x480_SPI.h"
//#include "myTFTs/my_7_Waveshare_800x480_SPI_DUE.h"
//#include "myTFTs/my_7_Waveshare_800x480_CTE_DUE.h"

6. есть подвиды контроллеров в диспах 480*800 которые без оперативки , да и зачем она им нужна удорожать их, если ими управляет уже мощный процессор со своим большим ОЗУ . там уже не справится ардуинка.

forfrends
Offline
Зарегистрирован: 24.02.2015

Библиотеку не ставил, так как там 16-ти битное подключение используется. Но все иниты с нее перепробовал - результат тот же. Дисплей молчит. Пойду кардинальным путем. Переведу дисп в 16 бит и по-новой перепроверю все возможные иниты.

Перед переделкой хочу уточнить один вопрос: возможно ли чтобы способ передачи в библиотеке не соответствовал даташиту? Вот, если не ошибаюсь, показан цикл передачи команды/данных:

Не может ли быть так что в библиотеке этот цикл реализован иначе и из-за этого дисплей неправильно принимает данные? Я залез в библиотеку, но не понял как там это реализовано. Просто смотрю на даташит, распиновку кристала, ID дисплея - все совпадает, но не работает! ХЗ!

P.S. спедыдущие сообщения не видел. Спасибо. Буду пробовать.

forfrends
Offline
Зарегистрирован: 24.02.2015

Посмотрел библиотеку. Похоже она передавала команды не 16 бит, а только 8:

void UTFT::LCD_Write_COM(char VL)  
{   
/*	if (display_transfer_mode!=1)
	{
*/
		cbi(P_RS, B_RS);
		LCD_Writ_Bus(VL);
/*	}
	else
		LCD_Writ_Bus(VL);
*/
}

 

forfrends
Offline
Зарегистрирован: 24.02.2015

И так, перевел в 16 бит. Читалка выдала следующее:

v5.2 read all register + read ID + TFT LCD test 
Using Adafruit 2.8" TFT Breakout Board Pinout
TFT size is 320x240
v5.2  Reading all registers + ID tft lcd  B0h=0x03(FF),=0x04 . from  Slider
 arduino.ru/forum/apparatnye-voprosy/arduino-i-displei-ot-sotikov-mobilnykh-telefonov 
 
reg  p1 p2 p3 p4 p5 p6 p7 p8  
00 = 0                       * 
01 = 0 
02 = 0 
03 = 0 
04 = 0                       * 
05 = 0 
06 = 0 
07 = 0 
08 = 0 
09 = 0 
0A = 0 
0B = 0 
0C = 0 
0D = 0 
0E = 0 
0F = 0 
10 = 0 
11 = 0 
12 = 0 
13 = 0 
14 = 0 
15 = 0 
16 = 0 
17 = 0 
18 = 0 
19 = 0 
1A = 0 
1B = 0 
1C = 0 
1D = 0 
1E = 0 
1F = 0 
20 = 0 
21 = 0 
22 = 0 
23 = 0 
24 = 0 
25 = 0 
26 = 0 
27 = 0 
28 = 0 
29 = 0 
2A = 0 
2B = 0 
2C = 0 
2D = 0 
2E = 00 F3 CF 00 41 1A 0C 0F  
2F = 0 
30 = 0 
31 = 0 
32 = 0 
33 = 0 
34 = 0 
35 = 0 
36 = 0 
37 = 0 
38 = 0 
39 = 0 
3A = 0 
3B = 0 
3C = 0 
3D = 0 
3E = 7B 9D 00 00 22 A0 9D 3E  
3F = 0 
40 = 0 
41 = 0 
42 = 0 
43 = 0 
44 = 0 
45 = 0 
46 = 0 
47 = 0 
48 = 0 
49 = 0 
4A = 0 
4B = 0 
4C = 0 
4D = 0 
4E = 0 
4F = 0 
50 = 0 
51 = 0 
52 = 0 
53 = 0 
54 = 0 
55 = 0 
56 = 0 
57 = 0 
58 = 0 
59 = 0 
5A = 0 
5B = 0 
5C = 0 
5D = 0 
5E = 0 
5F = 0 
60 = 0 
61 = 0 
62 = 0 
63 = 0 
64 = 0 
65 = 0 
66 = 0 
67 = 0 
68 = 0 
69 = 0 
6A = 0 
6B = 0 
6C = 0 
6D = 0 
6E = 0 
6F = 0 
70 = 0 
71 = 0 
72 = 0 
73 = 0 
74 = 0 
75 = 0 
76 = 0 
77 = 0 
78 = 0 
79 = 0 
7A = 0 
7B = 0 
7C = 0 
7D = 0 
7E = 0 
7F = 0 
80 = 0 
81 = 0 
82 = 0 
83 = 0 
84 = 0 
85 = 0 
86 = 0 
87 = 0 
88 = 0 
89 = 0 
8A = 0 
8B = 0 
8C = 0 
8D = 0 
8E = 0 
8F = 0 
90 = 0 
91 = 0 
92 = 0 
93 = 0 
94 = 0 
95 = 0 
96 = 0 
97 = 0 
98 = 0 
99 = 0 
9A = 0 
9B = 0 
9C = 0 
9D = 0 
9E = 0 
9F = 0 
A0 = 0 
A1 = 0 
A2 = 0 
A3 = 0 
A4 = 0 
A5 = 0 
A6 = 0 
A7 = 0 
A8 = 0 
A9 = 0 
AA = 0 
AB = 0 
AC = 0 
AD = 0 
AE = 0 
AF = 0 
B0 = 0 
B1 = 0 
B2 = 0 
B3 = 0 
B4 = 0 
B5 = 0 
B6 = 0 
B7 = 0 
B8 = 0 
B9 = 0 
BA = 0 
BB = 0 
BC = 0 
BD = 0 
BE = 0 
BF = 0                       * 
C0 = 0 
C1 = 0 
C2 = 0 
C3 = 0 
C4 = 0 
C5 = 0 
C6 = 0 
C7 = 0 
C8 = 0 
C9 = 0 
CA = 0 
CB = 0 
CC = 0 
CD = 0 
CE = 0 
CF = 0 
D0 = 0 
D1 = 0 
D2 = 0 
D3 = 0                       * 
D4 = 0 
D5 = 0 
D6 = 0 
D7 = 0 
D8 = 0 
D9 = 0 
DA = 0                       * 
DB = 0                       * 
DC = 0                       * 
DD = 0 
DE = 0 
DF = 0 
E0 = 0 
E1 = 0 
E2 = 0 
E3 = 0 
E4 = 0 
E5 = 0 
E6 = 0 
E7 = 0 
E8 = 0 
E9 = 0 
EA = 0 
EB = 0 
EC = 0 
ED = 0 
EE = 0 
EF = 0                       * 
F0 = 0 
F1 = 0 
F2 = 0 
F3 = 0 
F4 = 0 
F5 = 0 
F6 = 0 
F7 = 0 
F8 = 0 
F9 = 0 
FA = 0 
FB = 0 
FC = 0 
FD = 0 
FE = 0 
 
00 = 0                       * 
04 = 0                       * 
B0 = 0 
BF = 0                       * 
D3 = 0                       * 
DA = 0                       * 
DB = 0                       * 
DC = 0                       * 
EF = 0                       * 
 . . . . . . . 
  writing in Manufacturer Command Access Protect  (B0h) <- 0xFFFFFF  
B0 = 0 
Device Code Read (BFh)  
BF = 0                       * 
 . . . 
 
reg  p1 p2 p3 p4 p5 p6 p7 p8  
B0 = 0 
B1 = 0 
B2 = 0 
B3 = 0 
B4 = 0 
B5 = 0 
B6 = 0 
B7 = 0 
B8 = 0 
B9 = 0 
BA = 0 
BB = 0 
BC = 0 
BD = 0 
BE = 0 
BF = 0                       * 
C0 = 0 
C1 = 0 
C2 = 0 
C3 = 0 
C4 = 0 
C5 = 0 
C6 = 0 
C7 = 0 
C8 = 0 
C9 = 0 
CA = 0 
CB = 0 
CC = 0 
CD = 0 
CE = 0 
CF = 0 
D0 = 0 
D1 = 0 
D2 = 0 
D3 = 0                       * 
D4 = 0 
D5 = 0 
D6 = 0 
D7 = 0 
D8 = 0 
D9 = 0 
DA = 0                       * 
DB = 0                       * 
DC = 0                       * 
DD = 0 
DE = 0 
DF = 0 
E0 = 0 
E1 = 0 
E2 = 0 
E3 = 0 
E4 = 0 
E5 = 0 
E6 = 0 
E7 = 0 
E8 = 0 
E9 = 0 
EA = 0 
EB = 0 
EC = 0 
ED = 0 
EE = 0 
EF = 0                       * 
F0 = 0 
F1 = 0 
F2 = 0 
F3 = 0 
F4 = 0 
F5 = 0 
F6 = 0 
F7 = 0 
F8 = 0 
F9 = 0 
FA = 0 
FB = 0 
FC = 0 
FD = 0 
FE = 0 
 writing in Manufacturer Command Access Protect  (B0h) <- 0x040404  
B0 = 0 
Device Code Read (BFh)  
BF = 0                       * 
 . . . 
 
reg  p1 p2 p3 p4 p5 p6 p7 p8  
B0 = 0 
B1 = 0 
B2 = 0 
B3 = 0 
B4 = 0 
B5 = 0 
B6 = 0 
B7 = 0 
B8 = 0 
B9 = 0 
BA = 0 
BB = 0 
BC = 0 
BD = 0 
BE = 0 
BF = 0                       * 
C0 = 0 
C1 = 0 
C2 = 0 
C3 = 0 
C4 = 0 
C5 = 0 
C6 = 0 
C7 = 0 
C8 = 0 
C9 = 0 
CA = 0 
CB = 0 
CC = 0 
CD = 0 
CE = 0 
CF = 0 
D0 = 0 
D1 = 0 
D2 = 0 
D3 = 0                       * 
D4 = 0 
D5 = 0 
D6 = 0 
D7 = 0 
D8 = 0 
D9 = 0 
DA = 0                       * 
DB = 0                       * 
DC = 0                       * 
DD = 0 
DE = 0 
DF = 0 
E0 = 0 
E1 = 0 
E2 = 0 
E3 = 0 
E4 = 0 
E5 = 0 
E6 = 0 
E7 = 0 
E8 = 0 
E9 = 0 
EA = 0 
EB = 0 
EC = 0 
ED = 0 
EE = 0 
EF = 0                       * 
F0 = 0 
F1 = 0 
F2 = 0 
F3 = 0 
F4 = 0 
F5 = 0 
F6 = 0 
F7 = 0 
F8 = 0 
F9 = 0 
FA = 0 
FB = 0 
FC = 0 
FD = 0 
FE = 0 
 
Unknown LCD driver chip: 0
***use minimal init as driver ili9341 ili9488 *** ->
Benchmark                Time (microseconds)
Screen fill              1119004
Text                     319652
Lines                    3138868
Horiz/Vert Lines         107828
Rectangles (outline)     79884
Rectangles (filled)      2365716
Circles (filled)         1025184
Circles (outline)        1358816
Triangles (outline)      994892
Triangles (filled)       1395256
Rounded rects (outline)  456448
Rounded rects (filled)   2793896
Done!

А дисплей показал помехи!

  

croc19
Offline
Зарегистрирован: 17.02.2017

это не помехи. Инит прошел. Но библиотека работает с дисплеем неправильно. Читай даташит на контроллер и 

подавая нужные команды выводи изображение.

криворук
Offline
Зарегистрирован: 04.04.2020

здравствуйте.