Return how many pulses have been generated by the most recent StepPulse or StepAccel command on the pin.
from cubloc import StepStat StepStat(pin: int)
StepPulse or StepAccel was used.
Return how many pulses have been generated by the most recent StepPulse or StepAccel command on the pin.
pin is not an integer.pin is outside the supported range.from time import sleep_ms from cubloc import StepStat # Start the pulse train StepPulse(15, 2000, 5000) while True: sleep_ms(1000) # Print the number of pulses generated so far result = StepStat(15) print(result)