Skip to content

Commit 7c6394a

Browse files
authored
Fix to PWMRANGE
The analogWrite-Range is no longer 1023 by default. It has been changed to 255. "NOTE: The default analogWrite range was 1023 in releases before 3.0, but this lead to incompatibility with external libraries which depended on the Arduino core default of 256. Existing applications which rely on the prior 1023 value may add a call to analogWriteRange(1023) to their setup() routine to return to their old behavior." https://arduino-esp8266.readthedocs.io/en/latest/reference.html?highlight=analogwrite#analog-output
1 parent 41dc133 commit 7c6394a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ int lastManualValue = 0;
1919
unsigned long reportTimer = 0;
2020
unsigned long lastSpeedReport = 0;
2121
float fanSpeed = 0;
22-
int PWMRANGE;
22+
int PWMRANGE = 1023;
2323
const char wifiInitialApPassword[] = "loving_ct";
2424
DNSServer dnsServer;
2525
WebServer server(80);

0 commit comments

Comments
 (0)