From 4309ce7c27000c8a00af616e667ac37662f1b0c4 Mon Sep 17 00:00:00 2001 From: Martin Vladic Date: Sun, 6 Nov 2022 16:29:52 +0100 Subject: [PATCH] native_vars --- eez | 2 +- lvgl-template-web.eez-project | 2 +- src/ui/flow_def.c | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/eez b/eez index d5dbe45..9e026b8 160000 --- a/eez +++ b/eez @@ -1 +1 @@ -Subproject commit d5dbe45e4dda5e46a1e3230c64044c06da205aae +Subproject commit 9e026b8c7279309b8af2dd156beda9f7f14ff5a8 diff --git a/lvgl-template-web.eez-project b/lvgl-template-web.eez-project index b147038..7577208 100644 --- a/lvgl-template-web.eez-project +++ b/lvgl-template-web.eez-project @@ -49,7 +49,7 @@ { "objID": "0f3ea37c-f0d3-4061-c693-76b52bd9d632", "fileName": "flow_def.c", - "template": "#include \"flow_def.h\"\n\n//${eez-studio GUI_ASSETS_DEF_COMPRESSED}\n" + "template": "#include \n\n#include \"flow_def.h\"\n#include \"vars.h\"\n\n//${eez-studio GUI_ASSETS_DEF_COMPRESSED}\n\n//${eez-studio LVGL_NATIVE_VARS_TABLE_DEF}\n" }, { "objID": "81fa9cb7-33e4-4272-9340-49a50037b327", diff --git a/src/ui/flow_def.c b/src/ui/flow_def.c index 47477e4..a29a1c2 100644 --- a/src/ui/flow_def.c +++ b/src/ui/flow_def.c @@ -1,4 +1,7 @@ +#include + #include "flow_def.h" +#include "vars.h" // ASSETS DEFINITION const uint8_t assets[409] = { @@ -29,3 +32,8 @@ const uint8_t assets[409] = { 0x00, 0x00, 0xE4, 0x02, 0x2F, 0x03, 0x03, 0x68, 0x00, 0x03, 0x08, 0x01, 0x00, 0x04, 0xB0, 0x01, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; + +native_var_t native_vars[] = { + { NATIVE_VAR_TYPE_NONE, 0, 0 }, +}; +