MCPcopy Create free account
hub / github.com/FastLED/FastLED / main

Function main

ci/test_void_rpc.py:79–91  ·  view source on GitHub ↗

Entry point wrapper for async main.

()

Source from the content-addressed store, hash-verified

77
78
79def main() -> int:
80 """Entry point wrapper for async main."""
81 parser = argparse.ArgumentParser(description="Test void RPC functions")
82 parser.add_argument(
83 "--port", required=True, help="Serial port (e.g., COM3, /dev/ttyUSB0)"
84 )
85 parser.add_argument("--baudrate", type=int, default=115200, help="Baud rate")
86 parser.add_argument(
87 "--use-pyserial", action="store_true", help="Use pyserial instead of fbuild"
88 )
89 args = parser.parse_args()
90
91 return asyncio.run(main_async(args.port, args.baudrate, args.use_pyserial))
92
93
94if __name__ == "__main__":

Callers 1

test_void_rpc.pyFile · 0.70

Calls 3

parse_argsMethod · 0.80
main_asyncFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected