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

Method __init__

ci/rpc_schema_validator.py:60–73  ·  view source on GitHub ↗

Initialize validator and fetch schema from device. Args: port: Serial port (e.g., 'COM18' or '/dev/ttyUSB0') baudrate: Serial baud rate timeout: Timeout for schema fetch

(self, port: str, baudrate: int = 115200, timeout: float = 5.0)

Source from the content-addressed store, hash-verified

58 """
59
60 def __init__(self, port: str, baudrate: int = 115200, timeout: float = 5.0):
61 """
62 Initialize validator and fetch schema from device.
63
64 Args:
65 port: Serial port (e.g., 'COM18' or '/dev/ttyUSB0')
66 baudrate: Serial baud rate
67 timeout: Timeout for schema fetch
68 """
69 self.port = port
70 self.baudrate = baudrate
71 self.timeout = timeout
72 self.schema: Optional[RpcSchema] = None
73 self._fetch_schema()
74
75 def _fetch_schema(self):
76 """Fetch schema from device via getSchema RPC call"""

Callers

nothing calls this directly

Calls 1

_fetch_schemaMethod · 0.95

Tested by

no test coverage detected