写不NG流程:添加传送带运行、步进电机移动、线条个数方便后续夹爪的抓取、气动夹爪控制流程

This commit is contained in:
2026-01-09 17:52:52 +08:00
parent 8821b30689
commit a8a35545cc
7 changed files with 410 additions and 43 deletions

View File

@ -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()