# PWM Currently, this module only gets enabled programatically. For example, see [Lights module](Lights.md) ## Terminal | Command | description | | --- | --- | |**pwm.write** <channel> <duty>|Set PWM channel duty (percentage)| ## Settings |Key|Description|Possible values|Default value| | --- | --- | --- | --- | |pwmFreq||(depends on the provider)|500 (Hz)| |pwmRes|Output duty resolution, in bits|8...12bit (depends on the provider)|10 (bit)| |pwmLimit|Maximum duty allowed|0...100 (%)|100 (%)| ## Build-time configuration | **Option** | **Note** | | --- | --- | | `PWM_PROVIDER=...` | Either `PWM_PROVIDER_GENERIC` or `PWM_PROVIDER_ARDUINO`. Default, `PWM_PROVIDER_GENERIC` | | `PWM_FREQUENCY` | `500` (default) | | `PWM_RESOLUTION` | `10` (default) | | `PWM_DUTY_LIMIT` | `100` (default) |