Get the primary artifact extension for a board. Args: board: Board configuration Returns: File extension including the dot (e.g., ".bin", ".hex")
(board: Board)
| 124 | |
| 125 | |
| 126 | def 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 | |
| 147 | def get_example_ino_path(example: str) -> Path: |
no outgoing calls
no test coverage detected