diff --git a/data_svelte/items.json b/data_svelte/items.json index df00ea79..6668aad2 100644 --- a/data_svelte/items.json +++ b/data_svelte/items.json @@ -455,11 +455,22 @@ "apin": -1, "num": 34 }, + { + "name": "35. Доп. функции системы", + "type": "Reading", + "subtype": "SysExt", + "id": "SysExt", + "widget": "", + "page": "", + "descr": "", + "int": 15, + "num": 35 + }, { "header": "Экраны" }, { - "name": "35. LCD экран 2004", + "name": "36. LCD экран 2004", "type": "Reading", "subtype": "Lcd2004", "id": "Lcd", @@ -471,10 +482,10 @@ "size": "20,4", "coord": "0,0", "id2show": "id датчика", - "num": 35 + "num": 36 }, { - "name": "36. LCD экран 1602", + "name": "37. LCD экран 1602", "type": "Reading", "subtype": "Lcd2004", "id": "Lcd", @@ -486,6 +497,6 @@ "size": "16,2", "coord": "0,0", "id2show": "id датчика", - "num": 36 + "num": 37 } ] \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index d7470c0d..69f2960a 100644 --- a/platformio.ini +++ b/platformio.ini @@ -89,6 +89,7 @@ build_src_filter = + + + + + + [env:esp32_4mb_fromitems] diff --git a/src/modules/API.cpp b/src/modules/API.cpp index e570b3b6..33431763 100644 --- a/src/modules/API.cpp +++ b/src/modules/API.cpp @@ -23,6 +23,7 @@ void* getAPI_IoTServo(String subtype, String params); void* getAPI_Mcp23017(String subtype, String params); void* getAPI_Mp3(String subtype, String params); void* getAPI_Pwm8266(String subtype, String params); +void* getAPI_SysExt(String subtype, String params); void* getAPI_Lcd2004(String subtype, String params); void* getAPI(String subtype, String params) { @@ -50,6 +51,7 @@ if ((tmpAPI = getAPI_IoTServo(subtype, params)) != nullptr) return tmpAPI; if ((tmpAPI = getAPI_Mcp23017(subtype, params)) != nullptr) return tmpAPI; if ((tmpAPI = getAPI_Mp3(subtype, params)) != nullptr) return tmpAPI; if ((tmpAPI = getAPI_Pwm8266(subtype, params)) != nullptr) return tmpAPI; +if ((tmpAPI = getAPI_SysExt(subtype, params)) != nullptr) return tmpAPI; if ((tmpAPI = getAPI_Lcd2004(subtype, params)) != nullptr) return tmpAPI; return nullptr; } \ No newline at end of file