fix: luaD_throw不应该返回,使用while(1)强制死机
[LuatOS.git] / luat / include / luat_lcdseg.h
blob790ecf32d2a21707d8d8c3cb23182e29d421c98f
2 #ifndef LUAT_LCDSEG_H
3 #define LUAT_LCDSEG_H
4 #include "luat_base.h"
6 typedef struct luat_lcd_options
8 /** Bias configuration */
9 uint8_t bias;
10 /** Duty configuration */
11 uint8_t duty;
12 /** Vlcd configuration */
13 uint8_t vlcd;
14 /** com number */
15 uint8_t com_number;
16 /** Fresh rate configuration */
17 uint16_t fresh_rate;
18 uint32_t com_mark;
19 uint32_t seg_mark;
20 } luat_lcd_options_t;
22 int luat_lcdseg_setup(luat_lcd_options_t *opts);
24 int luat_lcdseg_enable(uint8_t enable);
26 int luat_lcdseg_power(uint8_t enable);
28 int luat_lcdseg_seg_set(uint8_t com, uint32_t seg, uint8_t val);
30 #endif