Table of Contents

Pwm

Output a PWM waveform on the specified channel.

Syntax

from cubloc import Pwm
 
PWM(pin: int, duty: int, period: int)

Parameters

Exceptions

Example

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