fix: libfota2的URL应该只合成一次
[LuatOS.git] / components / lcd / luat_lcd_st7735v.c
blob703b40736d4e23a2e4122233f02461b69dd7e1c2
1 #include "luat_base.h"
2 #include "luat_lcd.h"
4 #define LUAT_LOG_TAG "st7735v"
5 #include "luat_log.h"
7 static const uint16_t st7735v_init_cmds[] = {
8 0x02B1,0x0305,0x033A,0x033A,
9 0x02B2,0x0305,0x033A,0x033A,
10 0x02B3,0x0305,0x033A,0x033A,0x0305,0x033A,0x033A,
11 0x02B4, 0x0303,
12 0x02C0,0x0362,0x0302,0x0304,
13 0x02C1,0x03C0,
14 0x02C2,0x030D,0x0300,
15 0x02C3,0x038D,0x036A,
16 0x02C4,0x038D,0x03EE,
17 0x02C5,0x030E,
18 0x02E0,0x0310,0x030E,0x0302,0x0303,0x030E,0x0307,0x0302,0x0307,0x030A,0x0312,0x0327,0x0337,0x0300,0x030D,0x030E,0x0310,
19 0x02E1,0x0310,0x030E,0x0303,0x0303,0x030F,0x0306,0x0302,0x0308,0x030A,0x0313,0x0326,0x0336,0x0300,0x030D,0x030E,0x0310,
20 0x023A,0x0305,
23 luat_lcd_opts_t lcd_opts_st7735v = {
24 .name = "st7735v",
25 .init_cmds_len = sizeof(st7735v_init_cmds)/sizeof(st7735v_init_cmds[0]),
26 .init_cmds = st7735v_init_cmds,
27 .direction0 = 0xC8,
28 .direction90 = 0x78,
29 .direction180 = 0x08,
30 .direction270 = 0xA8