Run build for specified examples and platform using new PlatformIO system. Args: board: Board class instance or board name string (resolved via create_board()) examples: List of example names to build verbose: Enable verbose output additional_defines: Additional
(
board: Board | str,
examples: list[str],
verbose: bool = False,
additional_defines: Optional[list[str]] = None,
additional_include_dirs: Optional[list[str]] = None,
)
| 1636 | |
| 1637 | |
| 1638 | def run_pio_build( |
| 1639 | board: Board | str, |
| 1640 | examples: list[str], |
| 1641 | verbose: bool = False, |
| 1642 | additional_defines: Optional[list[str]] = None, |
| 1643 | additional_include_dirs: Optional[list[str]] = None, |
| 1644 | ) -> list[Future[SketchResult]]: |
| 1645 | """Run build for specified examples and platform using new PlatformIO system. |
| 1646 | |
| 1647 | Args: |
| 1648 | board: Board class instance or board name string (resolved via create_board()) |
| 1649 | examples: List of example names to build |
| 1650 | verbose: Enable verbose output |
| 1651 | additional_defines: Additional defines to add to build flags (e.g., ["FASTLED_DEFINE=0", "DEBUG=1"]) |
| 1652 | additional_include_dirs: Additional include directories to add to build flags (e.g., ["src/platforms/sub", "external/libs"]) |
| 1653 | """ |
| 1654 | pio = PioCompiler( |
| 1655 | board, |
| 1656 | verbose, |
| 1657 | Path.home() / ".fastled" / "platformio_cache", |
| 1658 | additional_defines, |
| 1659 | additional_include_dirs, |
| 1660 | None, |
| 1661 | ) |
| 1662 | return pio.build(examples) |
nothing calls this directly
no test coverage detected