()
| 32 | |
| 33 | |
| 34 | def off(): |
| 35 | if config.get("/LED/enable", False): |
| 36 | if config.get("/LED/type") == "aiy": |
| 37 | thread.start_new_thread(aiy.off, ()) |
| 38 | elif config.get("/LED/type") == "respeaker": |
| 39 | from robot.drivers.pixels import pixels |
| 40 | |
| 41 | pixels.off() |
| 42 | else: |
| 43 | logger.error("错误:不支持的灯光类型", stack_info=True) |