From 7c755d4776f4f01348b4ce96702362676cfb6473 Mon Sep 17 00:00:00 2001 From: moserja Date: Sat, 20 Jan 2024 19:22:21 +0000 Subject: [PATCH] Add initSequence.h --- initSequence.h | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 initSequence.h diff --git a/initSequence.h b/initSequence.h new file mode 100644 index 0000000..9f1f065 --- /dev/null +++ b/initSequence.h @@ -0,0 +1,63 @@ +/** + * @file initSequence.h + * @author Lewis He (lewishe@outlook.com) + * @license MIT + * @copyright Copyright (c) 2023 Shenzhen Xin Yuan Electronic Technology Co., Ltd + * @date 2023-05-29 + * + */ +#pragma once + +#include + +typedef struct { + uint32_t addr; + uint8_t param[20]; + uint32_t len; +} lcd_cmd_t; + +#define AMOLED_DEFAULT_BRIGHTNESS 175 + +#define SH8501_INIT_SEQUENCE_LENGHT 407 +extern const lcd_cmd_t sh8501_cmd[SH8501_INIT_SEQUENCE_LENGHT]; +#define SH8501_WIDTH 368 +#define SH8501_HEIGHT 194 + + +#define RM67162_INIT_SEQUENCE_LENGHT 6 +extern const lcd_cmd_t rm67162_cmd[RM67162_INIT_SEQUENCE_LENGHT]; +#define RM67162_WIDTH 240 +#define RM67162_HEIGHT 536 +#define RM67162_MADCTL_MY 0x80 +#define RM67162_MADCTL_MX 0x40 +#define RM67162_MADCTL_MV 0x20 +#define RM67162_MADCTL_ML 0x10 +#define RM67162_MADCTL_RGB 0x00 +#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_WIDTH 600 +#define RM690B0_HEIGHT 450 +#define RM690B0_MADCTL_MY 0x80 +#define RM690B0_MADCTL_MX 0x40 +#define RM690B0_MADCTL_MV 0x20 +#define RM690B0_MADCTL_ML 0x10 +#define RM690B0_MADCTL_RGB 0x00 +#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_WIDTH 126 +#define JD9613_HEIGHT 294 + + + + + + + + +