mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
build(sim): colour-touch (ui-lvgl) WASM in the solo-sim release zip
- build-solo-sim.yml clones LVGL at the version pinned in solo/wio-tracker-l2/platformio.ini and builds the SIM_UI=lvgl sim into wasm/lvgl/ of solo-sim-wasm.zip, for the site's device switch. - build_wasm.sh: LVGL_DIR can be overridden (CI has no .pio libdeps). - sim_test_set_node_name(): names a sim node, for site screenshots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -551,6 +551,17 @@ extern "C" EMSCRIPTEN_KEEPALIVE int sim_test_set_timezone_hours(int hours) {
|
||||
// UITask::loop() entirely -- there's no separate flag to touch. A demo
|
||||
// running on a visitor's screen has no battery to save and no reason to
|
||||
// go dark or lock itself while they're reading it.
|
||||
// Renames this instance (NodePrefs::node_name, what Settings > Name sets) so
|
||||
// a host page's peers have readable names in screenshots, instead of the
|
||||
// default hex of their public key. In memory only; the next advert carries it.
|
||||
extern "C" EMSCRIPTEN_KEEPALIVE int sim_test_set_node_name(const char* name) {
|
||||
if (!g_sim_ready || !name || !*name) return 0;
|
||||
NodePrefs* prefs = the_mesh.getNodePrefs();
|
||||
if (!prefs) return 0;
|
||||
snprintf(prefs->node_name, sizeof(prefs->node_name), "%s", name);
|
||||
return 1;
|
||||
}
|
||||
|
||||
extern "C" EMSCRIPTEN_KEEPALIVE int sim_test_disable_screen_timeout() {
|
||||
if (!g_sim_ready) return 0;
|
||||
NodePrefs* prefs = the_mesh.getNodePrefs();
|
||||
|
||||
Reference in New Issue
Block a user