Valid values are 0 through 7, one for each of the 8 channels.

This commit is contained in:
rusefillc 2022-09-09 21:05:45 -04:00
parent 472921257d
commit 2d1d6b2a86
1 changed files with 2 additions and 2 deletions

View File

@ -309,7 +309,7 @@ Reads physical value of arbitrary MCU pin
Initializes PWM on the specified index, starting at the specified frequency and duty cycle. The index selects which config field pin to use, see "Lua PWM Outputs" page in TunerStudio.
- Parameters
- `index`: The index of the PWM channel to start. Valid values are 0 through 7, one for each of the 8 channels.
- `index`: The index of the PWM channel to start. Valid values are 0 through 7, one for each of the 8 channels.
- `frequency`: Initial frequency of the output, in hertz (cycles per second). Valid values are between 1 and 1000hz.
- `duty`: Initial duty cycle of the output. `0.0` = fully off, and `1.0` = fully on. `0.25` = on 25% of the time, off 75% of the time.
- Returns
@ -320,7 +320,7 @@ Initializes PWM on the specified index, starting at the specified frequency and
Set the duty cycle of the specified PWM channel.
- Parameters
- `index`: The index of the PWM channel to set.
- `index`: The index of the PWM channel to set. Valid values are 0 through 7, one for each of the 8 channels.
- `duty`: Desired duty cycle of the output. `0.0` = fully off, and `1.0` = fully on. `0.25` = on 25% of the time, off 75% of the time.
- Returns
- none