This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| logicpython:cubloc_api:stepstop [2026/04/10 02:06] – created - external edit 127.0.0.1 | logicpython:cubloc_api:stepstop [2026/04/22 05:28] (current) – [Parameters] mfranklin | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| ===== Parameters ===== | ===== Parameters ===== | ||
| - | * **channel**: '' | + | * **pin**: The GPIO pin on which '' |
| ===== Exceptions ===== | ===== Exceptions ===== | ||
| Line 23: | Line 23: | ||
| <code python> | <code python> | ||
| + | from time import sleep_ms | ||
| from cubloc import StepStop | from cubloc import StepStop | ||
| - | # Example usage | + | # Start a pulse train and let it run for 5 seconds |
| + | StepPulse(15, | ||
| + | sleep_ms(5000) | ||
| + | |||
| + | # Stop the pulse train | ||
| StepStop(0) | StepStop(0) | ||
| + | |||
| + | while True: | ||
| + | pass | ||
| </ | </ | ||