feat(P4): 7-Zoll-Display JC1060P470C-I-W unterstützen (1.5.0)
Dieselbe Display-Firmware bedient jetzt wahlweise das bisherige 4,3-Zoll-Panel JC4880P443C-I-W (ST7701, 480x800) oder das neue 7-Zoll-Panel JC1060P470C-I-W (JD9165, 1024x600). Umgeschaltet wird über JC_PANEL_TYPE in config.h (JC_PANEL_43 / JC_PANEL_70) oder per Compiler-Flag -DJC_PANEL_TYPE=70. Vorgabe bleibt das 4,3-Zoll-Panel; dessen Verhalten ändert sich nicht. - src/lcd/esp_lcd_jd9165.c/.h aus dem Hersteller-Paket übernommen; board_bringup.c legt je nach Panel DSI-Bus, DPI-Zeitbasis und Herstellertreiber an. - pins_config.h liefert Auflösung, LCD-Reset (4,3": GPIO5, 7,0": GPIO27) und Ausrichtung panelabhängig. Das 7-Zoll-Panel ist nativ Querformat, deshalb entfallen dort die 270-Grad-Rotation und die PPA-Beschleunigung. - lvgl_port_v9.h bezieht LVGL_PORT_H/V_RES aus pins_config.h statt fest 480/800. - Der GT911 des 7-Zöllers meldet Rohkoordinaten im Raster 800x480 statt 1024x600. Die Umrechnung hängt am process_coordinates-Hook von esp_lcd_touch, damit die Herstellerdatei esp_lcd_touch_gt911.c unverändert bleibt. - ui.cpp rechnet nicht mehr mit fest verdrahteten 480 Pixeln Höhe, sondern mit DISP_VER_RES. Layout und Schriften bleiben sonst unverändert. - Hersteller-Paket des 7-Zöllers unter JC_Display_Firmware_7zoll/ abgelegt; Werkzeuge, Archive und mitgelieferte Fremdbibliotheken per .gitignore ausgeschlossen (587 MB im Original, 21 MB im Repo). Kompiliertest ESP32-P4, beide Varianten: 4,3": 1.173.768 B Flash (37 %), 322.880 B RAM (98 %) 7,0": 1.138.752 B Flash (36 %), 322.600 B RAM (98 %) Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
544c6ae3b8
commit
92c1446824
Binary file not shown.
Binary file not shown.
+78
@@ -0,0 +1,78 @@
|
||||
JDEVB_RSOX(1024);
|
||||
JDEVB_RSOY(600);
|
||||
JDEVB_VS(2);
|
||||
JDEVB_VBP(21);
|
||||
JDEVB_VFP(12); //12->18(HKC),CKV_OFF(41->4B)_20230228
|
||||
JDEVB_HS(24);
|
||||
JDEVB_HBP(136);
|
||||
JDEVB_HFP(160);
|
||||
JDEVB_DOTCLK(51.2);
|
||||
|
||||
//------------------------------------------------//
|
||||
//VCC=1.8V/3.3V, AVDD=11V, VGH=20V, VGL=-7, VCOM=3.6(~3.8)V
|
||||
//1+2Dot inversion
|
||||
//------------------------------------------------//
|
||||
|
||||
|
||||
{0x30, 1,{0x00}},
|
||||
{0xF7, 4,{0x49,0x61,0x02,0x00}},
|
||||
{0x30, 1,{0x01}},
|
||||
{0x04, 1,{0x0C}},
|
||||
{0x05, 1,{0x00}}, //05=06(xhs)
|
||||
{0x06, 1,{0x00}}, //06=80(xhs)
|
||||
{0x0B, 1,{0x11}}, //0x13=4lanes,0x12=3lanes,0x11=2lanes,0x10=1 lanes
|
||||
{0x17, 1,{0x00}},
|
||||
{0x20, 1,{0x04}}, //add //r_lansel_sel_reg=1, software charge lane must open
|
||||
{0x1F, 1,{0x05}}, //add hs_settle time
|
||||
{0x23, 1,{0x00}}, //add //close gas
|
||||
{0x25, 1,{0x19}},
|
||||
{0x28, 1,{0x18}},
|
||||
{0x29, 1,{0x04}}, //revcom
|
||||
{0x2A, 1,{0x01}}, //revcom
|
||||
{0x2B, 1,{0x04}}, //vcom
|
||||
{0x2C, 1,{0x01}}, //vcom
|
||||
{0x30, 1,{0x02}},
|
||||
{0x01, 1,{0x22}},
|
||||
{0x03, 1,{0x12}},
|
||||
{0x04, 1,{0x00}},
|
||||
{0x05, 1,{0x64}},
|
||||
{0x0A, 1,{0x08}},
|
||||
{0x0B, 11,{0x0A,0x1A,0x0B,0x0D,0x0D,0x11,0x10,0x06,0x08,0x1F,0x1D}},
|
||||
{0x0C, 11,{0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D}},
|
||||
{0x0D, 11,{0x16,0x1B,0x0B,0x0D,0x0D,0x11,0x10,0x07,0x09,0x1E,0x1C}},
|
||||
{0x0E, 11,{0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D}},
|
||||
{0x0F, 11,{0x16,0x1B,0x0D,0x0B,0x0D,0x11,0x10,0x1C,0x1E,0x09,0x07}},
|
||||
{0x10, 11,{0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D}},
|
||||
{0x11, 11,{0x0A,0x1A,0x0D,0x0B,0x0D,0x11,0x10,0x1D,0x1F,0x08,0x06}},
|
||||
{0x12, 11,{0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D}},
|
||||
{0x14, 4,{0x00,0x00,0x11,0x11}}, //CKV_OFF
|
||||
{0x18, 1,{0x99}},
|
||||
{0x30, 1,{0x06}},
|
||||
{0x12, 14,{0x36,0x2C,0x2E,0x3C,0x38,0x35,0x35,0x32,0x2E,0x1D,0x2B,0x21,0x16,0x29}},
|
||||
{0x13, 14,{0x36,0x2C,0x2E,0x3C,0x38,0x35,0x35,0x32,0x2E,0x1D,0x2B,0x21,0x16,0x29}},
|
||||
//{0x30, 1,{0x08}}, //RGB&LVDS add
|
||||
//{0x05, 1,{0x01}}, //RGB&LVDS add
|
||||
//{0x0C, 1,{0x1A}}, //RGB&LVDS add
|
||||
//{0x0D, 1,{0x0E}}, //RGB&LVDS add
|
||||
|
||||
//{0x30, 1,{0x07}},
|
||||
//{0x01, 1,{0x04}}, //P7_r01=0x04(0x06)_r_hster_delay
|
||||
|
||||
{0x30, 1,{0x0A}},
|
||||
{0x02, 1,{0x4F}},
|
||||
{0x0B, 1,{0x40}},
|
||||
{0x12, 1,{0x3E}},
|
||||
{0x13, 1,{0x78}},
|
||||
{0x30, 1,{0x0D}},
|
||||
{0x0D, 1,{0x04}}, //0x0C, 0x04
|
||||
{0x10, 1,{0x0C}},
|
||||
{0x11, 1,{0x0C}},
|
||||
{0x12, 1,{0x0C}},
|
||||
{0x13, 1,{0x0C}},
|
||||
{0x30, 1,{0x00}},
|
||||
{0x11,0,{}},
|
||||
{REGFLAG_DELAY, 120, {}},
|
||||
{0x29,0,{}},
|
||||
{REGFLAG_DELAY, 20, {}},
|
||||
{REGFLAG_END_OF_TABLE, 0x00, {}}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
Reference in New Issue
Block a user