mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 23:22:19 +03:00
Merge pull request #229 from biveraxe/ver4dev
Мелкие баги исправляем в модулях
This commit is contained in:
@@ -20,6 +20,7 @@ class Pwm8266 : public IoTItem {
|
|||||||
|
|
||||||
IoTgpio.pinMode(_pin, OUTPUT);
|
IoTgpio.pinMode(_pin, OUTPUT);
|
||||||
analogWriteFreq(_freq);
|
analogWriteFreq(_freq);
|
||||||
|
analogWriteResolution(10);
|
||||||
IoTgpio.analogWrite(_pin, value.valD);
|
IoTgpio.analogWrite(_pin, value.valD);
|
||||||
|
|
||||||
jsonRead(parameters, "apin", _apin);
|
jsonRead(parameters, "apin", _apin);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class UART : public IoTItem {
|
|||||||
#endif
|
#endif
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
_myUART = new HardwareSerial(2);
|
_myUART = new HardwareSerial(2);
|
||||||
_myUART->begin(speed, SERIAL_8N1, rx, tx);
|
_myUART->begin(_speed, SERIAL_8N1, _rx, _tx);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user