fix: 对不支持weak的bsp, luat_http_client_onevent报重复定义了
[LuatOS.git] / components / lcd / luat_lcd_st7735.c
blob02066b879aea1a3bc146a3d3bf4dde345fbe484a
1 #include "luat_base.h"
2 #include "luat_lcd.h"
4 #define LUAT_LOG_TAG "st7735"
5 #include "luat_log.h"
7 static const uint16_t st7735_init_cmds[] = {
8 0x02B1,0x0305,0x033C,0x033C,
9 0x02B2,0x0305,0x033C,0x033C,
10 0x02B3,0x0305,0x033C,0x033C,0x0305,0x033C,0x033C,
11 //------------------------------------End ST7735S Frame Rate---------------------------------//
12 0x02B4,0x0303,
13 //------------------------------------ST7735S Power Sequence---------------------------------//
14 0x02C0,0x0328,0x0308,0x0304,
15 0x02C1,0x03C0,
16 0x02C2,0x030D,0x0300,
17 0x02C3,0x038D,0x032A,
18 0x02C4,0x038D,0x03EE,
19 //---------------------------------End ST7735S Power Sequence-------------------------------------//
20 0x02C5,0x031A,
21 //------------------------------------ST7735S Gamma Sequence---------------------------------//
22 0x02E0,0x0304,0x0322,0x0307,0x030A,0x032E,0x0330,0x0325,0x032A,0x0328,0x0326,0x032E,0x033A,0x0300,0x0301,0x0303,0x0313,
23 0x02E1,0x0304,0x0316,0x0306,0x030D,0x032D,0x0326,0x0323,0x0327,0x0327,0x0325,0x032D,0x033B,0x0300,0x0301,0x0304,0x0313,
24 0x023A,0x0305,
28 luat_lcd_opts_t lcd_opts_st7735 = {
29 .name = "st7735",
30 .init_cmds_len = sizeof(st7735_init_cmds)/sizeof(st7735_init_cmds[0]),
31 .init_cmds = st7735_init_cmds,
32 .direction0 = 0xC0,
33 .direction90 = 0x70,
34 .direction180 = 0x00,
35 .direction270 = 0xA0