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

Both sides previous revisionPrevious revision
Next revision
Previous revision
logicpython:cubloc_api:steppulse [2026/04/22 05:21] mfranklinlogicpython: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 13: Line 13:
 ===== Parameters ===== ===== Parameters =====
  
-  * **pin**: ''Output'' GPIO ''pin'' number. +  * **pin**: Output GPIO pin number. 
-  * **freq**: ''Output'' frequency in pulses per second (1 to 15000)+  * **freq**: Output frequency in pulses per second. 
-  * **qty**: Number of pulses to output (0 to 2147483647).+  * **qty**: Number of pulses to output.
  
 ===== Exceptions ===== ===== Exceptions =====
Line 31: Line 31:
 from cubloc import StepPulse from cubloc import StepPulse
  
-# Example usage 
 StepPulse(15, 2000, 5000) StepPulse(15, 2000, 5000)
 +
 +while True:
 +    pass
 </code> </code>
  
logicpython/cubloc_api/steppulse.1776835289.txt.gz · Last modified: by mfranklin