mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 15:12:19 +03:00
changes
This commit is contained in:
@@ -31,10 +31,13 @@ void cmd_init() {
|
||||
sCmd.addCommand("button-out", buttonOut);
|
||||
sCmd.addCommand("pwm-out", pwmOut);
|
||||
sCmd.addCommand("button-in", buttonIn);
|
||||
|
||||
sCmd.addCommand("input-digit", inputDigit);
|
||||
sCmd.addCommand("input-time", inputTime);
|
||||
sCmd.addCommand("output-text", textOut);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#include "ItemsList.h"
|
||||
#include "Utils\StringUtils.h"
|
||||
|
||||
static const char* firstLine PROGMEM = "Тип элемента;Id;Виджет;Имя вкладки;Имя виджета;Позиция виджета";
|
||||
|
||||
void addItem(String name) {
|
||||
String item = readFile("items/" + name + ".txt", 1024);
|
||||
|
||||
name = deleteToMarkerLast(name, "-");
|
||||
item.replace("id", name + String(getNewElementNumber("id.txt")));
|
||||
item.replace("order", String(getNewElementNumber("order.txt")));
|
||||
item.replace("pin", "pin[" + String(getFreePin()) + "]");
|
||||
|
||||
item.replace("\r\n", "");
|
||||
item.replace("\r", "");
|
||||
item.replace("\n", "");
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "Utils\StringUtils.h"
|
||||
|
||||
#include "Consts.h"
|
||||
|
||||
String selectToMarkerLast(String str, String found) {
|
||||
|
||||
Reference in New Issue
Block a user