mirror of
https://github.com/esphome/esphome.git
synced 2026-09-21 12:08:38 +00:00
a9ec101631a3c9fc917e7234b6e7bd99bcd6ff1f
Byte-by-byte `progmem_read_byte` for a 512-byte chunk does 512 aligned 32-bit flash reads + shifts on ESP8266. Switching to `memcpy_P` lets the SDK do bulk aligned-flash copies. Other platforms get a plain `std::memcpy` since their `PROGMEM` is a no-op and the blob lives in normal address space. `memcpy_P` is only available on ESP8266 (via `<pgmspace.h>`), so the implementation is platform-gated; both paths boil down to a one-call copy.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
609 MiB
Languages
C++
55.7%
Python
43.7%
C
0.3%
JavaScript
0.2%
