add volume up gpio button

This commit is contained in:
Terrence
2024-10-15 03:56:35 +08:00
parent 548b854777
commit caae7cb930
8 changed files with 101 additions and 16 deletions

View File

@@ -5,6 +5,7 @@
#include <esp_lcd_panel_io.h>
#include <esp_lcd_panel_ops.h>
#include <lvgl.h>
#include <esp_timer.h>
#include <string>
@@ -14,6 +15,7 @@ public:
~Display();
void SetText(const std::string &text);
void ShowNotification(const std::string &text);
private:
int sda_pin_;
@@ -25,6 +27,8 @@ private:
esp_lcd_panel_handle_t panel_ = nullptr;
lv_disp_t *disp_ = nullptr;
lv_obj_t *label_ = nullptr;
lv_obj_t *notification_ = nullptr;
esp_timer_handle_t notification_timer_ = nullptr;
std::string text_;
};