MCPcopy
hub / github.com/wzpan/wukong-robot / off

Function off

robot/sdk/LED.py:34–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def 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)

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
offMethod · 0.45

Tested by

no test coverage detected