From c02e50452ab55d34af20b49c130b12d2395aab39 Mon Sep 17 00:00:00 2001 From: biver Date: Sun, 6 Nov 2022 13:08:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BD=D1=8F=D0=B5=D0=BC=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B7=D1=80=D0=B5=D1=88=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=A8=D0=98=D0=9C=20=D0=BD=D0=B0=2010=D0=B1?= =?UTF-8?q?=D0=B8=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/exec/Pwm8266/Pwm8266.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/exec/Pwm8266/Pwm8266.cpp b/src/modules/exec/Pwm8266/Pwm8266.cpp index 2f8883f4..7e61a80a 100644 --- a/src/modules/exec/Pwm8266/Pwm8266.cpp +++ b/src/modules/exec/Pwm8266/Pwm8266.cpp @@ -20,6 +20,7 @@ class Pwm8266 : public IoTItem { IoTgpio.pinMode(_pin, OUTPUT); analogWriteFreq(_freq); + analogWriteResolution(10); IoTgpio.analogWrite(_pin, value.valD); jsonRead(parameters, "apin", _apin);