Files
Uni-Lab-OS/unilabos/devices/motor/commands/Warning.py
Junhan Chang c78ac482d8 Initial commit
2025-04-17 15:19:47 +08:00

13 lines
373 B
Python

from serial import Serial
from ..Consts import Config
from ..Utils import create_command, send_command
def create_elimate_warning_command(DEVICE_ADDRESS):
return create_command(DEVICE_ADDRESS, 0x06, 0x0145, 0x0087)
def run_elimate_warning(ser: Serial, DEVICE_ADDRESS):
send_command(ser, create_elimate_warning_command(DEVICE_ADDRESS))
print("清除警报")