CHIP_IO

A CHIP IO library for Python: IO+PWM+SPWM+ADC+Utilities

View the Project on GitHub

CHIP_IO.SOFTPWM

Import the SOFTPWM module as follows

  import CHIP_IO.SOFTPWM as SPWM

toggle_debug()

Enable/Disable the Debug

is_chip_pro()

Function to report to the calling script if the SBC is a CHIP or a CHIP Pro

start(channel, duty_cycle=0.0, frequency=2000.0, polarity=0)

Start the Software PWM

stop(channel)

Stop the Software PWM

set_duty_cycle(channel, duty_cycle)

Set the duty cycle of the Software PWM

set_frequency(channel, frequency)

Set the frequency of the Software PWM in Hertz

cleanup(channel)

Cleanup Software PWM. If not channel input, all Software PWM will be cleaned up

home