Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed May 28, 2024
1 parent 28e4839 commit d6bda2d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/LilyGo_AMOLED.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static const DisplayConfigure_t SH8501_AMOLED = {
24,//address bit
30000000,
(lcd_cmd_t *)sh8501_cmd,
SH8501_INIT_SEQUENCE_LENGHT,
SH8501_INIT_SEQUENCE_LENGTH,
SH8501_WIDTH, //width
SH8501_HEIGHT, //height
SH8501_WIDTH *SH8501_HEIGHT * sizeof(uint16_t), //frameBufferSize
Expand All @@ -162,7 +162,7 @@ static const DisplayConfigure_t RM67162_AMOLED = {
18,//BOARD_DISP_DATA0,
7,//BOARD_DISP_DATA1,
48,//BOARD_DISP_DATA2,
5,//BOARD_DISP_DATA3,
5,//BOARD_DISP_DATA3,
47,//BOARD_DISP_SCK,
6,//BOARD_DISP_CS,
BOARD_NONE_PIN,//DC
Expand All @@ -172,7 +172,7 @@ static const DisplayConfigure_t RM67162_AMOLED = {
24,//address bit
75000000,
(lcd_cmd_t *)rm67162_cmd,
RM67162_INIT_SEQUENCE_LENGHT,
RM67162_INIT_SEQUENCE_LENGTH,
RM67162_WIDTH,//width
RM67162_HEIGHT,//height
0,//frameBufferSize
Expand All @@ -197,7 +197,7 @@ static const DisplayConfigure_t RM690B0_AMOLED = {
24,//address bit
36000000,
(lcd_cmd_t *)rm690b0_cmd,
RM690B0_INIT_SEQUENCE_LENGHT,
RM690B0_INIT_SEQUENCE_LENGTH,
RM690B0_WIDTH,//width
RM690B0_HEIGHT,//height
0,//frameBufferSize
Expand Down
8 changes: 4 additions & 4 deletions src/initSequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "initSequence.h"


const lcd_cmd_t sh8501_cmd[SH8501_INIT_SEQUENCE_LENGHT] = {
const lcd_cmd_t sh8501_cmd[SH8501_INIT_SEQUENCE_LENGTH] = {

// === CMD2 password ===
{0xfe00, {0x20}, 0x01},
Expand Down Expand Up @@ -501,7 +501,7 @@ const lcd_cmd_t sh8501_cmd[SH8501_INIT_SEQUENCE_LENGHT] = {
{0x2900, {}, 0x80},
};

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

Expand All @@ -527,7 +527,7 @@ const lcd_cmd_t rm67162_cmd[RM67162_INIT_SEQUENCE_LENGHT] = {



const lcd_cmd_t rm690b0_cmd[RM690B0_INIT_SEQUENCE_LENGHT] = {
const lcd_cmd_t rm690b0_cmd[RM690B0_INIT_SEQUENCE_LENGTH] = {
{0xFE00, {0x20}, 0x01}, //SET PAGE
{0x2600, {0x0A}, 0x01}, //MIPI OFF
{0x2400, {0x80}, 0x01}, //SPI write RAM
Expand All @@ -543,7 +543,7 @@ const lcd_cmd_t rm690b0_cmd[RM690B0_INIT_SEQUENCE_LENGHT] = {
{0x5100, {0xFF}, 0x01}, //Write Display Brightness MAX_VAL=0XFF
};

const lcd_cmd_t jd9613_cmd[JD9613_INIT_SEQUENCE_LENGHT] = {
const lcd_cmd_t jd9613_cmd[JD9613_INIT_SEQUENCE_LENGTH] = {
{0xfe, {0x01}, 0x02},
{0xf7, {0x96, 0x13, 0xa9}, 0x04},
{0x90, {0x01}, 0x02},
Expand Down
16 changes: 8 additions & 8 deletions src/initSequence.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ typedef struct {

#define AMOLED_DEFAULT_BRIGHTNESS 175

#define SH8501_INIT_SEQUENCE_LENGHT 407
extern const lcd_cmd_t sh8501_cmd[SH8501_INIT_SEQUENCE_LENGHT];
#define SH8501_INIT_SEQUENCE_LENGTH 407
extern const lcd_cmd_t sh8501_cmd[SH8501_INIT_SEQUENCE_LENGTH];
#define SH8501_WIDTH 368
#define SH8501_HEIGHT 194


#define RM67162_INIT_SEQUENCE_LENGHT 12
extern const lcd_cmd_t rm67162_cmd[RM67162_INIT_SEQUENCE_LENGHT];
#define RM67162_INIT_SEQUENCE_LENGTH 12
extern const lcd_cmd_t rm67162_cmd[RM67162_INIT_SEQUENCE_LENGTH];
#define RM67162_WIDTH 240
#define RM67162_HEIGHT 536
#define RM67162_MADCTL_MY 0x80
Expand All @@ -36,8 +36,8 @@ extern const lcd_cmd_t rm67162_cmd[RM67162_INIT_SEQUENCE_LENGHT];
#define RM67162_MADCTL_MH 0x04
#define RM67162_MADCTL_BGR 0x08

#define RM690B0_INIT_SEQUENCE_LENGHT 13
extern const lcd_cmd_t rm690b0_cmd[RM690B0_INIT_SEQUENCE_LENGHT];
#define RM690B0_INIT_SEQUENCE_LENGTH 13
extern const lcd_cmd_t rm690b0_cmd[RM690B0_INIT_SEQUENCE_LENGTH];
#define RM690B0_WIDTH 600
#define RM690B0_HEIGHT 450
#define RM690B0_MADCTL_MY 0x80
Expand All @@ -48,8 +48,8 @@ extern const lcd_cmd_t rm690b0_cmd[RM690B0_INIT_SEQUENCE_LENGHT];
#define RM690B0_MADCTL_MH 0x04
#define RM690B0_MADCTL_BGR 0x08

#define JD9613_INIT_SEQUENCE_LENGHT 88
extern const lcd_cmd_t jd9613_cmd[JD9613_INIT_SEQUENCE_LENGHT];
#define JD9613_INIT_SEQUENCE_LENGTH 88
extern const lcd_cmd_t jd9613_cmd[JD9613_INIT_SEQUENCE_LENGTH];
#define JD9613_WIDTH 294
#define JD9613_HEIGHT 126

Expand Down

0 comments on commit d6bda2d

Please sign in to comment.