|
|
__init__(self,
agent)
Contructs a PWM object. |
|
|
|
|
set_period(self,
pins,
period)
Sets the output period for the specified pins. |
|
|
|
|
set_freq(self,
pins,
freq)
Sets the output frequency for the specified pins. |
|
|
|
tuple of integers
|
get_period(self,
pin)
Gets the output period of the specified pin. |
|
|
|
tuple of integers
|
get_freq(self,
pin)
Gets the output frequency of the specified pin. |
|
|
|
|
set_duty(self,
pins,
duty)
Sets the output duty cycle for the specified pins. |
|
|
|
tuple of integer integer
|
get_duty(self,
pin)
Gets the output duty cycle for the pins. |
|
|
|
bool
|
get_state(self,
pin)
Returns if the PWM has been started on the pin. |
|
|
|
|
start(self,
pins)
Enable PWM output for the specified pins. |
|
|
|
|
stop(self,
pins)
Disable PWM output for the specified pins. |
|
|
|
Inherited from Module:
do_op
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|