This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| logicpython:cubloc_api:steppulse [2026/04/10 02:06] – created - external edit 127.0.0.1 | logicpython:cubloc_api:steppulse [2026/04/22 05:30] (current) – [StepPulse] mfranklin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== StepPulse ====== | ====== StepPulse ====== | ||
| - | '' | + | Output a finite pulse train on the specified '' |
| ===== Syntax ===== | ===== Syntax ===== | ||
| Line 8: | Line 8: | ||
| from cubloc import StepPulse | from cubloc import StepPulse | ||
| - | StepPulse(channel: int, pin: int, freq: int, qty: int) | + | StepPulse(pin: |
| </ | </ | ||
| ===== Parameters ===== | ===== Parameters ===== | ||
| - | | + | * **pin**: Output GPIO pin number. |
| - | | + | * **freq**: Output frequency in pulses per second. |
| - | * **freq**: | + | * **qty**: Number of pulses to output. |
| - | * **qty**: Number of pulses to output | + | |
| ===== Exceptions ===== | ===== Exceptions ===== | ||
| Line 32: | Line 31: | ||
| from cubloc import StepPulse | from cubloc import StepPulse | ||
| - | # Example usage | + | StepPulse(15, 2000, 5000) |
| - | StepPulse(0, 0, 1, 1) | + | |
| + | while True: | ||
| + | pass | ||
| </ | </ | ||