User Tools

Site Tools

한국어

logicpython:cubloc_api:stepstop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
logicpython:cubloc_api:stepstop [2026/04/10 02:06] – created - external edit 127.0.0.1logicpython:cubloc_api:stepstop [2026/04/22 05:28] (current) – [Parameters] mfranklin
Line 13: Line 13:
 ===== Parameters ===== ===== Parameters =====
  
-  * **channel**: ''StepPulse channel'' number (0 or 1).+  * **pin**: The GPIO pin on which ''StepPulse'' or ''StepAccel'' was used.
  
 ===== 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, 2000, 5000) 
 +sleep_ms(5000) 
 + 
 +# Stop the pulse train
 StepStop(0) StepStop(0)
 + 
 +while True:
 +    pass
 </code> </code>
  
logicpython/cubloc_api/stepstop.1775786799.txt.gz · Last modified: by 127.0.0.1