mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
working with class
This commit is contained in:
@@ -102,6 +102,7 @@ void cmd_init() {
|
||||
handle_time_init();
|
||||
|
||||
myItem = new Item();
|
||||
myClass = new Button();
|
||||
}
|
||||
|
||||
//==========================================Модуль кнопок===================================================
|
||||
@@ -118,7 +119,7 @@ void button() {
|
||||
sCmd.addCommand(key.c_str(), buttonSet);
|
||||
|
||||
|
||||
myItem->pinModeSet(pin.toInt());
|
||||
myClass->pinModeSet(pin.toInt());
|
||||
|
||||
if (pin != "") {
|
||||
pinMode(pin.toInt(), OUTPUT);
|
||||
|
||||
Reference in New Issue
Block a user