Skip to content

Commit

Permalink
Update Commands.md
Browse files Browse the repository at this point in the history
Channel argument of PWMFrequency added for ESP32
  • Loading branch information
sfromis authored Nov 22, 2023
1 parent 99919e3 commit c6995f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ MqttLog<a class="cmnd" id="mqttlog"></a>|`0` = disable logging via MQTT *(defau
NtpServer<x\><a class="cmnd" id="ntpserver"></a>|NTP server setup (x= `1..3`)<BR>`0` = clear NtpServer<x\> settings<BR>`1` = reset NtpServer<x\> settings to firmware defaults<BR>`<value>` = set NtpServer<x\> host or IP address (32 char limit)
OtaUrl<a class="cmnd" id="otaurl"></a>|Display current OTA URL<BR> `1` = Reset OtaUrl to firmware default<BR> `url` = set address for OTA (100 char limit)
PWM<x\><a class="cmnd" id="pwm"></a>|`0..1023` = set PWM value for channel (NOTE see [`SetOption15`](#setoption15))
PWMFrequency<a class="cmnd" id="pwmfrequency"></a>|`1` = reset PWM frequency to 223Hz<BR>`40..4000 or 2..50000` = set PWM frequency (40Hz to 4kHz on ESP 82xx / 2Hz to 50kHz on ESP32)<BR>_As of v8.3.0 the default frequency changed to 977Hz_
PWMFrequency<a class="cmnd" id="pwmfrequency"></a>|`<frequency> [, <channel>]`<BR>`1` = reset PWM frequency to 223Hz<BR>`40..4000 or 2..50000` = set PWM frequency (40Hz to 4kHz on ESP 82xx / 2Hz to 50kHz on ESP32)<BR>PWM channel can **only** be selected on ESP32<BR>_As of v8.3.0 the default frequency changed to 977Hz_
PWMRange<a class="cmnd" id="pwmrange"></a>|`1` = reset maximum PWM range to 1023<BR>`255..1023` = set maximum PWM range
Reset<a class="cmnd" id="reset"></a>|`1` = reset device settings to firmware defaults and restart (see warning below)<BR>`2` = erase flash, reset device settings to firmware defaults and restart<BR> `3` = erase System Parameter Area in flash (Wi-Fi calibration and related data) and restart (see warning below)<BR>`4` = reset device settings to firmware defaults but retain Wi-Fi credentials and restart<BR> `5` = erase all flash and reset parameters to firmware defaults but keep Wi-Fi settings and restart<BR>`6` = erase all flash and reset parameters to firmware defaults but keep Wi-Fi and MQTT settings and restart<BR>*(Erase of flash can take a few seconds to complete and there is no output during the erase process on the serial or web console)*<BR>`99` = reset device bootcount to zero<BR>:warning: For `reset 3`and `reset 1`, device must be power-cycled in order to load new Wifi System parameters.
Restart<a class="cmnd" id="restart"></a>|`1` = restart device with configuration saved to flash<BR>`2` = halt system (needs hardware reset or power cycle to restart)<BR>`3` = (ESP32 only) restart device into safeboot with configuration saved<BR>`9` = save all changes and go into deepsleep waiting for a reset<BR>`99` = force restart device without configuration save<BR>_For debug and testing stack trace dumps only:_<BR>`-1` = force an Exception (28) crash<BR>`-2` = force a Soft WDT reset (after a freeze of 2 seconds)<BR>`-3` = force an OS watchdog reset (after a freeze of 120 seconds, **caution!**)
Expand Down

0 comments on commit c6995f2

Please sign in to comment.