fix: 修正API生成逻辑中2024库的url
[LuatOS.git] / luat / include / luat_disp.h
blobebd20605145fe2e0ae25a3b6eff8b818fdbca5b3
2 #ifndef LUAT_DISP_H
3 #define LUAT_DISP_H
4 #include "luat_base.h"
6 typedef struct luat_disp_conf
8 size_t pinType; // I2C_SW = 1, I2C_HW = 2, SPI_SW_3PIN = 3, SPI_SW_4PIN = 4, SPI_HW_4PIN=5, P8080 = 6
9 size_t w;
10 size_t h;
11 size_t pin0;
12 size_t pin1;
13 size_t pin2;
14 size_t pin3;
15 size_t pin4;
16 size_t pin5;
17 size_t pin6;
18 size_t pin7;
19 char* cname; // 控制器名称, 例如SSD1306
20 void* ptr;
21 } luat_disp_conf_t;
23 int luat_disp_setup(luat_disp_conf_t *conf);
25 int luat_disp_close(luat_disp_conf_t *conf);
27 #endif