Добавил конфигурации для запуска: release, debug, wireless
DEBUG_SERIAL конфилктовал с esp.cpp, переименовал в DEBUG_SERIAL_LAMP
Тест
> pio run
Retrieving maximum program size .pio/build/debug/firmware.elf
Checking size .pio/build/debug/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [====== ] 55.4% (used 45400 bytes from 81920 bytes)
Flash: [=== ] 32.8% (used 342364 bytes from 1044464 bytes)
================================================================================= [SUCCESS] Took 2.31 seconds =================================================================================
Environment Status Duration
------------- -------- ------------
debug SUCCESS 00:00:02.312
================================================================================= 1 succeeded in 00:00:02.312 =================================================================================
Тест