Table of Contents

StepPulse

Output a finite pulse train on the specified pin using a PIO state machine.

Syntax

from cubloc import StepPulse
 
StepPulse(pin: int, freq: int, qty: int)

Parameters

Exceptions

Notes

Example

from cubloc import StepPulse
 
StepPulse(15, 2000, 5000)
 
while True:
    pass