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

Class FlashConfig

ci/compiler/esp32_artifacts.py:37–49  ·  view source on GitHub ↗

ESP32 flash configuration (immutable).

Source from the content-addressed store, hash-verified

35
36@dataclass(frozen=True)
37class FlashConfig:
38 """ESP32 flash configuration (immutable)."""
39
40 mode: FlashMode
41 size_mb: int
42 frequency: str = "80m"
43
44 def is_qemu_compatible(self) -> bool:
45 """Check if configuration is QEMU compatible."""
46 return (
47 self.mode in [FlashMode.DIO, FlashMode.DOUT]
48 and self.size_mb in VALID_FLASH_SIZES
49 )
50
51
52@dataclass

Callers 1

read_flash_configMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected