使用ESP8266 + Python 脚本实现无线群控
准备环境
脚本说明
"""
In Python 3.8 and earlier, the name of the collection type is
capitalized, and the type is imported from the 'typing' module
"""
# from typing import Union, Optional # for Python 3.9+
from typing import Union, Dict, List, Optional # for Python 3.7# ip = "192.168.0.108" # for only one robot
ip = ["192.168.0.110", "192.168.0.108"] # for multiple robots使用方法
cmds = [
Command.sit, Command.balance, Command.stepping, Command.pee,
Command.stop
]Last updated
Was this helpful?