22 lines
502 B
C
22 lines
502 B
C
#ifndef _DZBJ_LCD_H_
|
|
#define _DZBJ_LCD_H_
|
|
|
|
#include "dzbj_gpio.h"
|
|
#include "esp_lvgl_port.h"
|
|
#include "esp_lcd_st77916.h"
|
|
#include <driver/i2c_master.h>
|
|
|
|
void lcd_init(void);
|
|
void lvgl_lcd_init(void);
|
|
void lcd_clear_screen_black(void);
|
|
|
|
// I2C 总线共享:传入主项目的 I2C 总线句柄,供触摸控制器使用
|
|
void lcd_set_i2c_bus(i2c_master_bus_handle_t bus);
|
|
|
|
#if DZBJ_ENABLE_TOUCH
|
|
void touch_init(void);
|
|
void get_touch(uint16_t* touchx, uint16_t* touchy);
|
|
#endif
|
|
|
|
#endif // _DZBJ_LCD_H_
|