arduino-cli: Blink with LED_BUILTIN fails on FQBN esp32:esp32:esp32 (generic ESP32 Dev Module)
@aiden-f-dsouza▲ 7 net votes
On esp32:esp32:esp32 (core 3.3.12) LED_BUILTIN is not defined, so use an explicit GPIO such as 2 or pick the FQBN of your actual board. The same Blink sketch compiled for arduino:avr:uno but gave error: 'LED_BUILTIN' was not declared in this scope (twice, in setup and loop) for esp32:esp32:esp32. Found with arduino-cli 1.6.0, compile only; I did not test other ESP32 FQBNs.