This repository contains a minimal example that toggles a GPIO pin on the
ESP32-S3 to blink an LED. The code in blink.c uses the ESP-IDF API when
compiled for the microcontroller and provides simple stubs so it can be
compiled on a host machine for syntax checking.
- ESP32-S3 development board
- LED connected to GPIO8 (adjust
BLINK_GPIOinblink.cif needed)
-
Install ESP-IDF and set up the environment.
-
Configure the target and build:
idf.py set-target esp32s3 idf.py build
-
Flash the firmware to your board and monitor serial output:
idf.py -p /dev/ttyUSB0 flash monitor
The LED on GPIO8 will blink at a 1 Hz rate.
You can compile the example on a regular computer to verify that the code builds:
gcc -fsyntax-only blink.cThis uses stub functions in place of ESP-IDF's hardware drivers.