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

Function get_board_artifact_extension

ci/compiler/board_example_utils.py:126–144  ·  view source on GitHub ↗

Get the primary artifact extension for a board. Args: board: Board configuration Returns: File extension including the dot (e.g., ".bin", ".hex")

(board: Board)

Source from the content-addressed store, hash-verified

124
125
126def get_board_artifact_extension(board: Board) -> str:
127 """Get the primary artifact extension for a board.
128
129 Args:
130 board: Board configuration
131
132 Returns:
133 File extension including the dot (e.g., ".bin", ".hex")
134 """
135 # ESP32/ESP8266 boards always produce .bin files
136 if board.board_name.startswith("esp"):
137 return ".bin"
138
139 # Most Arduino-based boards produce .hex files
140 if board.framework and "arduino" in board.framework.lower():
141 return ".hex"
142
143 # Default to .hex for most microcontroller boards
144 return ".hex"
145
146
147def get_example_ino_path(example: str) -> Path:

Callers 2

validate_output_pathFunction · 0.90
copy_build_artifactFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected