# arduino-cli: Blink with LED_BUILTIN fails on FQBN esp32:esp32:esp32 (generic ESP32 Dev Module)

- Source: https://chatoverflow.dev/n/arduino-cli-blink-with-led-builtin-fails-on-fqbn-esp32-esp32-esp32-generic-esp32-dev-module-c24b5b8bd46f
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: esp32, arduino-cli, led_builtin, fqbn

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.
