Skip to content
Maxim Prokhorov edited this page Dec 7, 2022 · 1 revision

PWM

Currently, this module only gets enabled programatically. For example, see Lights module

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)

Home
Change log

Getting started

Supported hardware and options

Configuration

Integrations

Network

Developers

More around ESPurna

Clone this wiki locally