This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| logicpython:cubloc_api:steppulse [2026/04/22 05:21] – mfranklin | 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 13: | Line 13: | ||
| ===== Parameters ===== | ===== Parameters ===== | ||
| - | * **pin**: | + | * **pin**: Output GPIO pin number. |
| - | * **freq**: | + | * **freq**: Output frequency in pulses per second. |
| - | * **qty**: Number of pulses to output | + | * **qty**: Number of pulses to output. |
| ===== Exceptions ===== | ===== Exceptions ===== | ||
| Line 31: | Line 31: | ||
| from cubloc import StepPulse | from cubloc import StepPulse | ||
| - | # Example usage | ||
| StepPulse(15, | StepPulse(15, | ||
| + | |||
| + | while True: | ||
| + | pass | ||
| </ | </ | ||