-
Data: 2016-04-02 21:10:05
Temat: Ku potomności lcd 2,4cala z mcu friend jest na...
Od: "Bo(o)t manager" <b...@W...wp.pl> szukaj wiadomości tego autora
[ pokaż wszystkie nagłówki ]RM 68090.
Długo się naszukałem bo pierwsze wyniki wskazywały na st7781.
Ktoś tu o nich pisał i se zakupiłem działa to na komendach od ili9325.
Więc jak by ktoś kupował to polecam. 18 pln i coś koło 1,5 tygodnia
czekania.
Działa na tych komendach(z pdf od ili9325):
LCD_WriteReg(0x00E3, 0x3008); // Set internal timing
LCD_WriteReg(0x00E7, 0x0012); // Set internal timing
LCD_WriteReg(0x00EF, 0x1231); // Set internal timing
LCD_WriteReg(0x0001, 0x0100); // set SS and SM bit
LCD_WriteReg(0x0002, 0x0700); // set 1 line inversion
LCD_WriteReg(0x0003, 0x1030);// set GRAM write direction and BGR=1.
LCD_WriteReg(0x0004, 0x0000); // Resize register
LCD_WriteReg(0x0008, 0x0207); // set the back porch and front porch
LCD_WriteReg(0x0009, 0x0000);//setnon-display area refresh cycleISC[3:0]
LCD_WriteReg(0x000A, 0x0000); // FMARK function
LCD_WriteReg(0x000C, 0x0000); // RGB interface setting
LCD_WriteReg(0x000D, 0x0000); // Frame marker Position
LCD_WriteReg(0x000F, 0x0000); // RGB interface polarity
//*************Power On sequence ****************//
LCD_WriteReg(0x0010, 0x0000); // SAP, BT[3:0], AP, DSTB, SLP, STB
LCD_WriteReg(0x0011, 0x0007); // DC1[2:0], DC0[2:0], VC[2:0]
LCD_WriteReg(0x0012, 0x0000); // VREG1OUT voltage
LCD_WriteReg(0x0013, 0x0000); // VDV[4:0] for VCOM amplitude
delay(200,ms); // Dis-charge capacitor power voltage
LCD_WriteReg(0x0010, 0x1490); // SAP, BT[3:0], AP, DSTB, SLP, STB
LCD_WriteReg(0x0011, 0x0227); // DC1[2:0], DC0[2:0], VC[2:0]
delay(50,ms); // Delay 50ms
LCD_WriteReg(0x0012, 0x001C); Internal reference voltage= Vci;
delay(50,ms); // Delay 50ms
LCD_WriteReg(0x0013, 0x1A00); // Set VDV[4:0] for VCOM amplitude
LCD_WriteReg(0x0029, 0x0025); // Set VCM[5:0] for VCOMH
LCD_WriteReg(0x002B, 0x000C); // Set Frame Rate
delay(50,ms); // Delay 50ms
LCD_WriteReg(0x0020, 0x0000); // GRAM horizontal Address
LCD_WriteReg(0x0021, 0x0000); // GRAM Vertical Address
// ----------- Adjust the Gamma Curve ----------//
LCD_WriteReg(0x0030, 0x0000);
LCD_WriteReg(0x0031, 0x0506);
LCD_WriteReg(0x0032, 0x0104);
LCD_WriteReg(0x0035, 0x0207);
LCD_WriteReg(0x0036, 0x000F);
LCD_WriteReg(0x0037, 0x0306);
LCD_WriteReg(0x0038, 0x0102);
LCD_WriteReg(0x0039, 0x0707);
LCD_WriteReg(0x003C, 0x0702);
LCD_WriteReg(0x003D, 0x1604);
//------------------ Set GRAM area ---------------//
LCD_WriteReg(0x0050, 0x0000); Horizontal GRAM Start Address
LCD_WriteReg(0x0051, 0x00EF); // Horizontal GRAM End Address
LCD_WriteReg(0x0052, 0x0000); // Vertical GRAM Start Address
LCD_WriteReg(0x0053, 0x013F); // Vertical GRAM Start Address
LCD_WriteReg(0x0060, 0xA700); // Gate Scan Line
LCD_WriteReg(0x0061, 0x0001); // NDL,VLE, REV
LCD_WriteReg(0x006A, 0x0000); // set scrolling line
//-------------- Partial Display Control ---------//
LCD_WriteReg(0x0080, 0x0000);
LCD_WriteReg(0x0081, 0x0000);
LCD_WriteReg(0x0082, 0x0000);
LCD_WriteReg(0x0083, 0x0000);
LCD_WriteReg(0x0084, 0x0000);
LCD_WriteReg(0x0085, 0x0000);
//-------------- Panel Control -------------------//
LCD_WriteReg(0x0090, 0x0010);
LCD_WriteReg(0x0092, 0x0600);
LCD_WriteReg(0x0007, 0x0133); //262Kcolor and display ON
Może komuś się przyda. Testowane z STM32F401Discovery.
--
Pozdrawiam
Bo(o)t manager
Następne wpisy z tego wątku
- 03.04.16 01:22 AlexY
- 03.04.16 04:29 Bo(o)t manager
- 03.04.16 11:42 AlexY
- 03.04.16 14:03 ww
- 03.04.16 17:34 Bo(o)t manager
- 03.04.16 17:24 Bo(o)t manager
- 03.04.16 18:22 Bo(o)t manager
- 04.04.16 07:59 ww
- 04.04.16 08:29 ww
- 04.04.16 10:32 AlexY
- 04.04.16 10:46 ww
- 04.04.16 10:51 J.F.
- 04.04.16 10:54 AlexY
- 04.04.16 11:49 ww
- 04.04.16 15:40 AlexY
Najnowsze wątki z tej grupy
- Linuks od wer. 6.15 przestanie wspierać procesory 486 i będzie wymagać min. Pentium
- Propagation velocity v/c dla kabli RF
- Jakie natynkowe podwójne gniazdo z bolcem (2P+PE)
- Czujnik nacisku
- Protoków komunikacyjny do urządzenia pomiarowego
- Hiszpania bez pradu
- amperomierz w plusie
- 3G-nadal działa
- Historia pewnego miernika kalibratora
- Ustym 4k Pro i wyświetlacz
- Czemu rozwaliło celę?
- Wojna w portfelu
- Jaki trojfazowy licznik tuya lub podobny?
- Problem z dekoderem adresów
- Intel się wyprzedaje: po 10latach pchnęli pakiet kontrolny Altery za 1/4 kwoty zakupu
Najnowsze wątki
- 2025-05-21 https://stolenhistory.net/threads/19th-century-radium-heating-systems.1452/
- 2025-05-21 https://stolenhistory.net/threads/19th-century-radium-heating-systems.1452/
- 2025-05-20 Pojemnik z radem jako ogrzewacz do stóp
- 2025-05-20 Nowość sprzed lat - Kominki opalane radem
- 2025-05-20 China => Production Coordinator / Representant Product Dev <=
- 2025-05-19 lakier bezbarwny akrylowy
- 2025-05-19 Warszawa => JavaScript / Node / Fullstack Developer <=
- 2025-05-19 Wrocław => Key Account Manager (ERP) <=
- 2025-05-19 Warszawa => MLOps Engineer <=
- 2025-05-19 Zielona Góra => Konsultant wdrożeniowy Comarch XL (Logistyka, WMS, P
- 2025-05-19 Warszawa => Sales Executive / KAM <=
- 2025-05-19 Warszawa => Senior Key Account Manager IT <=
- 2025-05-19 Kraków => NMS System Administrator <=
- 2025-05-19 Kraków => NMS System Administrator <=
- 2025-05-19 Gliwice => Business Development Manager - Dział Sieci i Bezpieczeńst