Table of Contents

Pwm

Output a PWM waveform on the specified channel.

Syntax

from cubloc import Pwm
 
Pwm(channel: int, duty: int, period: int)

Parameters

Exceptions

Example

from cubloc import Pwm
 
# Example usage
Pwm(0, 1, 1)