Pigpiox v0.1.2 Pigpiox.Pwm View Source
Build and send waveforms with pigpiod.
Link to this section Summary
Functions
Get the current dutycycle for a specific PWM GPIO pin
Get the current frequency for a specific PWM GPIO pin
Sets up a specific pin as a software PWM and sets the current dutycycle
Sets the current dutycycle and fequency for the hardware PWM on a specific GPIO pin
Set the current frequency for a specific PWM GPIO pin
Link to this section Functions
Link to this function
get_pwm_dutycycle(pin)
View Source
get_pwm_dutycycle(pin :: integer) ::
{:ok, integer} |
{:error, atom}
Get the current dutycycle for a specific PWM GPIO pin
Link to this function
get_pwm_frequency(pin)
View Source
get_pwm_frequency(pin :: integer) ::
{:ok, integer} |
{:error, atom}
Get the current frequency for a specific PWM GPIO pin
Link to this function
gpio_pwm(pin, level)
View Source
gpio_pwm(pin :: integer, level :: integer) ::
:ok |
{:error, atom}
Sets up a specific pin as a software PWM and sets the current dutycycle
Link to this function
hardware_pwm(pin, freq, level)
View Source
hardware_pwm(pin :: integer, freq :: integer, level :: integer) ::
:ok |
{:error, atom}
Sets the current dutycycle and fequency for the hardware PWM on a specific GPIO pin
Link to this function
set_pwm_frequency(pin, freq)
View Source
set_pwm_frequency(pin :: integer, freq :: integer) ::
:ok |
{:error, atom}
Set the current frequency for a specific PWM GPIO pin