Skip to content

Commit 5f210a2

Browse files
add JC8012P4A1 dev device
1 parent 3ea1b0f commit 5f210a2

File tree

2 files changed

+310
-58
lines changed

2 files changed

+310
-58
lines changed

examples/PDQgraphicstest/Arduino_GFX_dev_device.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
// #define JC1060P470
2828
// #define JC3248W535
2929
// #define JC3636W518
30+
// #define JC8012P4A1
3031
// #define LILYGO_T_DECK
3132
// #define LILYGO_T_DECK_PLUS
3233
// #define LILYGO_T_DISPLAY
@@ -499,6 +500,18 @@ Arduino_DataBus *bus = new Arduino_ESP32QSPI(
499500
10 /* CS */, 9 /* SCK */, 11 /* D0 */, 12 /* D1 */, 13 /* D2 */, 14 /* D3 */);
500501
Arduino_GFX *gfx = new Arduino_ST77916(bus, 47 /* RST */, 0 /* rotation */, true /* IPS */, 360 /* width */, 360 /* height */);
501502

503+
#elif defined(JC8012P4A1)
504+
#define GFX_DEV_DEVICE JC8012P4A1
505+
#define GFX_BL 23 // default backlight pin, you may replace DF_GFX_BL to actual backlight pin
506+
#define DSI_PANEL
507+
Arduino_ESP32DSIPanel *dsipanel = new Arduino_ESP32DSIPanel(
508+
20 /* hsync_pulse_width */, 20 /* hsync_back_porch */, 40 /* hsync_front_porch */,
509+
4 /* vsync_pulse_width */, 8 /*vsync_back_porch */, 20 /* vsync_front_porch */,
510+
60000000 /* prefer_speed */);
511+
Arduino_DSI_Display *gfx = new Arduino_DSI_Display(
512+
800 /* width */, 1280 /* height */, dsipanel, 0 /* rotation */, true /* auto_flush */,
513+
27 /* RST */, jd9365_init_operations, sizeof(jd9365_init_operations) / sizeof(lcd_init_cmd_t));
514+
502515
#elif defined(LILYGO_T_DECK)
503516
#define GFX_DEV_DEVICE LILYGO_T_DECK
504517
#define DEV_DEVICE_INIT() \

0 commit comments

Comments
 (0)