mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 15:12:19 +03:00
Делаем округление для всех кнопок равной 0
This commit is contained in:
@@ -12,6 +12,7 @@ class ButtonOut : public IoTItem {
|
||||
ButtonOut(String parameters): IoTItem(parameters) {
|
||||
jsonRead(parameters, "pin", _pin);
|
||||
jsonRead(parameters, "inv", _inv);
|
||||
_round = 0;
|
||||
|
||||
IoTgpio.pinMode(_pin, OUTPUT);
|
||||
IoTgpio.digitalWrite(_pin, value.valD?HIGH:LOW);
|
||||
|
||||
Reference in New Issue
Block a user