mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Add hasp_init and hasp_load_json for File Browser
This commit is contained in:
parent
b7c4652d62
commit
71a0983b55
@ -469,8 +469,8 @@ void haspSetup(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
haspPages.init(haspStartPage);
|
hasp_init();
|
||||||
haspPages.load_jsonl(haspPagesPath);
|
hasp_load_json();
|
||||||
haspPages.set(haspStartPage, LV_SCR_LOAD_ANIM_NONE);
|
haspPages.set(haspStartPage, LV_SCR_LOAD_ANIM_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -483,6 +483,16 @@ void haspLoop(void)
|
|||||||
dispatchLoop();
|
dispatchLoop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void hasp_init(void)
|
||||||
|
{
|
||||||
|
haspPages.init(haspStartPage);
|
||||||
|
}
|
||||||
|
|
||||||
|
void hasp_load_json(void)
|
||||||
|
{
|
||||||
|
haspPages.load_jsonl(haspPagesPath);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
void hasp_background(uint16_t pageid, uint16_t imageid)
|
void hasp_background(uint16_t pageid, uint16_t imageid)
|
||||||
{
|
{
|
||||||
|
@ -74,6 +74,9 @@ void hasp_set_sleep_time(uint16_t short_time, uint16_t long_time);
|
|||||||
void hasp_enable_wakeup_touch();
|
void hasp_enable_wakeup_touch();
|
||||||
void hasp_disable_wakeup_touch();
|
void hasp_disable_wakeup_touch();
|
||||||
|
|
||||||
|
void hasp_init(void);
|
||||||
|
void hasp_load_json(void);
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* MACROS
|
* MACROS
|
||||||
**********************/
|
**********************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user