User Tools

Site Tools

한국어

logicpython:cubloc_api:stepstop

StepStop

Immediately stop pulse output on the specified step channel.

Syntax

from cubloc import StepStop
 
StepStop(channel: int)

Parameters

  • pin: The GPIO pin on which StepPulse or StepAccel was used.

Exceptions

Example

from time import sleep_ms
from cubloc import StepStop
 
# Start a pulse train and let it run for 5 seconds
StepPulse(15, 2000, 5000)
sleep_ms(5000)
 
# Stop the pulse train
StepStop(0)
 
while True:
    pass
logicpython/cubloc_api/stepstop.txt · Last modified: by mfranklin