mirror of
https://github.com/m5stack/StackChan.git
synced 2026-04-27 19:12:40 +00:00
update firmware v1.2.4 (#16)
This commit is contained in:
@@ -26,7 +26,8 @@ AppEspnowControl::AppEspnowControl()
|
||||
// 配置 App 名
|
||||
setAppInfo().name = "ESPNOW.REMOTE";
|
||||
// 配置 App 图标
|
||||
setAppInfo().icon = (void*)&icon_controller;
|
||||
static auto icon = assets::get_image("icon_controller.bin");
|
||||
setAppInfo().icon = (void*)&icon;
|
||||
// 配置 App 主题颜色
|
||||
static uint32_t theme_color = 0x7ACE74;
|
||||
setAppInfo().userData = (void*)&theme_color;
|
||||
|
||||
@@ -80,7 +80,7 @@ private:
|
||||
* @param options
|
||||
* @return int Selected option index
|
||||
*/
|
||||
static inline int create_page_selector_and_wait(std::string_view label, const std::vector<std::string> options)
|
||||
static inline int create_page_selector_and_wait(std::string_view label, const std::vector<std::string>& options)
|
||||
{
|
||||
GetHAL().lvglLock();
|
||||
auto page_selector = std::make_unique<view::PageSelector>(label, options);
|
||||
|
||||
Reference in New Issue
Block a user