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

Function main

ci/compiled_size.py:174–186  ·  view source on GitHub ↗
(board: str, example: str | None = None)

Source from the content-addressed store, hash-verified

172
173
174def main(board: str, example: str | None = None):
175 try:
176 size = check_firmware_size(board, example)
177 print(f"Firmware size for {board}: {size} bytes")
178 except FileNotFoundError as e:
179 print(f"Error: {e}")
180 except json.JSONDecodeError:
181 print(f"Error: Unable to parse build_info.json for {board}")
182 except KeyboardInterrupt as ki:
183 handle_keyboard_interrupt(ki)
184 raise
185 except Exception as e:
186 print(f"An unexpected error occurred: {e}")
187
188
189if __name__ == "__main__":

Callers 1

compiled_size.pyFile · 0.70

Calls 3

check_firmware_sizeFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected