@@ -40,21 +40,10 @@ displayio_fourwire_obj_t board_display_obj;
40
40
uint8_t display_init_sequence [] = {
41
41
0x01 , 0 | DELAY , 150 , // SWRESET
42
42
0x11 , 0 | DELAY , 255 , // SLPOUT
43
- 0xb1 , 3 , 0x01 , 0x2C , 0x2D , // _FRMCTR1
44
- 0xb2 , 3 , 0x01 , 0x2C , 0x2D , //
45
- 0xb3 , 6 , 0x01 , 0x2C , 0x2D , 0x01 , 0x2C , 0x2D ,
46
- 0xb4 , 1 , 0x07 , // _INVCTR line inversion
47
- 0xc0 , 3 , 0xa2 , 0x02 , 0x84 , // _PWCTR1 GVDD = 4.7V, 1.0uA
48
- 0xc1 , 1 , 0xc5 , // _PWCTR2 VGH=14.7V, VGL=-7.35V
49
- 0xc2 , 2 , 0x0a , 0x00 , // _PWCTR3 Opamp current small, Boost frequency
50
- 0xc3 , 2 , 0x8a , 0x2a ,
51
- 0xc4 , 2 , 0x8a , 0xee ,
52
- 0xc5 , 1 , 0x0e , // _VMCTR1 VCOMH = 4V, VOML = -1.1V
53
- 0x2a , 0 , // _INVOFF
54
- 0x36 , 1 , 0x00 , // _MADCTL top to bottom refresh in vsync aligned order.
43
+ 0x36 , 1 , 0x08 , // _MADCTL top to bottom refresh in vsync aligned order.
55
44
// 1 clk cycle nonoverlap, 2 cycle gate rise, 3 sycle osc equalie,
56
45
// fix on VTL
57
- 0x3a , 1 , 0x05 , // COLMOD - 16bit color
46
+ 0x3a , 2 , 0x55 , 10 , // COLMOD - 16bit color
58
47
0xe0 , 16 , 0x02 , 0x1c , 0x07 , 0x12 , // _GMCTRP1 Gamma
59
48
0x37 , 0x32 , 0x29 , 0x2d ,
60
49
0x29 , 0x25 , 0x2B , 0x39 ,
@@ -63,10 +52,11 @@ uint8_t display_init_sequence[] = {
63
52
0x2E , 0x2C , 0x29 , 0x2D ,
64
53
0x2E , 0x2E , 0x37 , 0x3F ,
65
54
0x00 , 0x00 , 0x02 , 0x10 ,
66
- 0x2a , 3 , 0x02 , 0x00 , 0x81 , // _CASET XSTART = 2, XEND = 129
67
- 0x2b , 3 , 0x02 , 0x00 , 0x81 , // _RASET XSTART = 2, XEND = 129
55
+ 0x2a , 3 , 0x00 , 240 >> 8 , 240 & 0xFF , // _CASET XSTART = 0, XEND = 240
56
+ 0x2b , 3 , 0x00 , 320 >> 8 , 320 & 0xFF , // _RASET YSTART = 0, YEND = 320
57
+ 0x21 , 0 | DELAY , 10 , // _INVON
68
58
0x13 , 0 | DELAY , 10 , // _NORON
69
- 0x29 , 0 | DELAY , 100 , // _DISPON
59
+ 0x29 , 0 | DELAY , 255 , // _DISPON
70
60
};
71
61
72
62
void board_init (void ) {
@@ -87,11 +77,11 @@ void board_init(void) {
87
77
display -> base .type = & displayio_display_type ;
88
78
common_hal_displayio_display_construct (display ,
89
79
bus ,
90
- 160 , // Width (after rotation)
91
- 128 , // Height (after rotation)
80
+ 320 , // Width (after rotation)
81
+ 240 , // Height (after rotation)
92
82
0 , // column start
93
83
0 , // row start
94
- 270 , // rotation
84
+ 90 , // rotation
95
85
16 , // Color depth
96
86
MIPI_COMMAND_SET_COLUMN_ADDRESS , // Set column command
97
87
MIPI_COMMAND_SET_PAGE_ADDRESS , // Set row command
0 commit comments