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

Function main

ci/test_async_rpc.py:75–87  ·  view source on GitHub ↗

Entry point wrapper for async main.

()

Source from the content-addressed store, hash-verified

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

Callers 1

test_async_rpc.pyFile · 0.70

Calls 3

parse_argsMethod · 0.80
main_asyncFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected