User Tools

Site Tools

한국어

logicpython:cubloc_api:steppulse

Differences

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

Link to this comparison view

Next revision
Previous revision
logicpython:cubloc_api:steppulse [2026/04/10 02:06] – created - external edit 127.0.0.1logicpython: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 ''pin'' using a PIO state machine.+Output a finite pulse train on the specified ''pin'' using a PIO state machine.
  
 ===== 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: int, freq: int, qty: int)
 </code> </code>
  
 ===== Parameters ===== ===== Parameters =====
  
-  * **channel**: ''StepPulse channel'' number (0 or 1). +  * **pin**: Output GPIO pin number. 
-  * **pin**: ''Output'' GPIO ''pin'' number. +  * **freq**: Output frequency in pulses per second. 
-  * **freq**: ''Output'' frequency in pulses per second (1 to 15000)+  * **qty**: Number of pulses to output.
-  * **qty**: Number of pulses to output (0 to 2147483647).+
  
 ===== Exceptions ===== ===== Exceptions =====
Line 32: Line 31:
 from cubloc import StepPulse from cubloc import StepPulse
  
-# Example usage +StepPulse(1520005000) 
-StepPulse(001, 1)+ 
 +while True: 
 +    pass
 </code> </code>
  
logicpython/cubloc_api/steppulse.1775786799.txt.gz · Last modified: by 127.0.0.1