GrovePi v0.6.1 GrovePi.PivotPi.PCA9685 View Source

This module provides lower level functions to interact with the PivotPi through the GrovePi. Most users should be able to obtain all needed functionality with GrovePi.PivotPi.

Link to this section Summary

Functions

Update the PWM on and off times on the specified channel or :all to write to update all channels

Turn the specified channel or :all OFF

Turn the specified channel or :all ON

Link to this section Types

Link to this type channel() View Source
channel() :: 0..15

Link to this section Functions

Link to this function send_cmd(command) View Source
send_cmd(binary()) :: :ok | {:error, term()}
Link to this function set_pwm(channel, on, off) View Source
set_pwm(channel() | :all, integer(), integer()) :: :ok | {:error, term()}

Update the PWM on and off times on the specified channel or :all to write to update all channels.

Link to this function set_pwm_off(channel) View Source
set_pwm_off(channel() | :all) :: :ok | {:error, term()}

Turn the specified channel or :all OFF.

Link to this function set_pwm_on(channel) View Source
set_pwm_on(channel() | :all) :: :ok | {:error, term()}

Turn the specified channel or :all ON.