Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
STEP_PIN = Pin("P2", Pin.OUT_PP) DIR_PIN = Pin("P3", Pin.OUT_PP) ENABLE_PIN = Pin("P6", Pin.OUT_PP)
#ENABLE_PIN.value(0) ENABLE_PIN.low()
DIR_PIN.value(1) # 设置方向,0为下,1为上运动 clock = time.clock()
代码要发全部的代码。