This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| logicpython:cubloc_api:stepaccel [2026/04/10 02:06] – created - external edit 127.0.0.1 | logicpython:cubloc_api:stepaccel [2026/04/22 05:31] (current) – [Parameters] mfranklin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== StepAccel ====== | ====== StepAccel ====== | ||
| - | '' | + | Output an accelerated, finite |
| ===== Syntax ===== | ===== Syntax ===== | ||
| Line 8: | Line 8: | ||
| from cubloc import StepAccel | from cubloc import StepAccel | ||
| - | StepAccel(channel: int, pin: int, freqBase: int, freqTop: int, freqAccel: int, qty: int) | + | StepAccel( |
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| </ | </ | ||
| ===== Parameters ===== | ===== Parameters ===== | ||
| - | | + | * **pin**: Output GPIO pin number. |
| - | | + | * **freqBase**: |
| - | * **freqBase**: | + | * **freqTop**: |
| - | * **freqTop**: | + | |
| * **freqAccel**: | * **freqAccel**: | ||
| - | * **qty**: Number of pulses to output | + | * **qty**: Number of pulses to output. |
| ===== Exceptions ===== | ===== Exceptions ===== | ||
| Line 34: | Line 38: | ||
| from cubloc import StepAccel | from cubloc import StepAccel | ||
| - | # Example usage | + | StepAccel(15, 1000, 5000, 2000, 50000) |
| - | StepAccel(0, 0, 1, 1, 1, 1) | + | |
| + | while True: | ||
| + | pass | ||
| </ | </ | ||