Skip to content

Commit

Permalink
Update RM67162 initialization sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Feb 22, 2024
1 parent 6ff8e34 commit 3dcfd13
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions src/initSequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,20 +502,31 @@ const lcd_cmd_t sh8501_cmd[SH8501_INIT_SEQUENCE_LENGHT] = {
};

const lcd_cmd_t rm67162_cmd[RM67162_INIT_SEQUENCE_LENGHT] = {
{0xFE00, {0x00}, 0x01}, //SET APGE 00H
{0x1100, {0x00}, 0x80}, // Sleep Out
// {0x44, {0x01, 0x66}, 0x02}, //Set_Tear_Scanline

{0xFE00, {0x05}, 0x01}, //SET APGE
{0x0500, {0x05}, 0x01}, //OVSS control set elvss -3.95v

{0xFE00, {0x01}, 0x01}, //SET APGE
{0x7300, {0x25}, 0x01}, //set OVSS voltage level.= -4.0V

{0xFE00, {0x00}, 0x01}, //SET APGE 00H
// {0x44, {0x01, 0x66},0x02}, //Set_Tear_Scanline
// {0x35, {0x00}, 0x00}, //TE ON
// {0x34, {0x00}, 0x00}, //TE OFF
// {0x36, {0x00}, 0x01}, //Scan Direction Control
{0x3600, {0x60}, 0x01}, //
{0x3A00, {0x55}, 0x01}, // Interface Pixel Format 16bit/pixel
// {0x3A, {0x66}, 0x01}, //Interface Pixel Format 18bit/pixel
// {0x3A, {0x77}, 0x01}, //Interface Pixel Format 24bit/pixel
{0x5100, {0x00}, 0x01}, // Write Display Brightness MAX_VAL=0XFF
{0x2900, {0x00}, 0x80}, // Display on
{0x5100, {AMOLED_DEFAULT_BRIGHTNESS}, 0x01}, // Write Display Brightness MAX_VAL=0XFF
{0x3600, {0x60}, 0x01}, //
{0x5100, {AMOLED_DEFAULT_BRIGHTNESS}, 0x01} // Write Display Brightness MAX_VAL=0XFF
};



const lcd_cmd_t rm690b0_cmd[RM690B0_INIT_SEQUENCE_LENGHT] = {
{0xFE00, {0x20}, 0x01}, //SET PAGE
{0x2600, {0x0A}, 0x01}, //MIPI OFF
Expand Down
2 changes: 1 addition & 1 deletion src/initSequence.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern const lcd_cmd_t sh8501_cmd[SH8501_INIT_SEQUENCE_LENGHT];
#define SH8501_HEIGHT 194


#define RM67162_INIT_SEQUENCE_LENGHT 6
#define RM67162_INIT_SEQUENCE_LENGHT 12
extern const lcd_cmd_t rm67162_cmd[RM67162_INIT_SEQUENCE_LENGHT];
#define RM67162_WIDTH 240
#define RM67162_HEIGHT 536
Expand Down

0 comments on commit 3dcfd13

Please sign in to comment.