写不NG流程:添加传送带运行、步进电机移动、线条个数方便后续夹爪的抓取、气动夹爪控制流程
This commit is contained in:
@ -249,7 +249,7 @@ class StepperMotor:
|
||||
"""析构函数:确保资源释放"""
|
||||
self.close()
|
||||
|
||||
# 使用示例
|
||||
# ----------对外接口-----------
|
||||
def motor_demo():
|
||||
"""电机控制示例"""
|
||||
motor = None
|
||||
@ -287,6 +287,5 @@ def motor_demo():
|
||||
motor.close()
|
||||
print("[OK] 程序退出完成")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
motor_demo()
|
||||
Reference in New Issue
Block a user