🛠 Premier blink sur une broche sûre (GPIO22)

ESP32-H2 · debutant · Schéma : IMG-esp32-h2-debutant-1-h2-clignoter-gpio22.svg — ESP32-H2-DevKitM-1 avec une LED externe et sa résistance sur GPIO22, broches déconseillées GPIO8 (strapping + LED RGB) et GPIO26/27 (USB) barrées.

First contact with the ESP32-H2, Espressif's mesh chip: a single-core 32-bit RISC-V running at up to 96 MHz, 320 KB of SRAM, and above all NO Wi-Fi — only IEEE 802.15.4 radios (Thread, Zigbee) and Bluetooth 5 LE are available. Blink tutorial with arduino-esp32 (board ESP32-H2 Dev Module): choose a safe pin like GPIO22, neither a strapping pin nor a USB pin. Avoid GPIO8: it is the embedded addressable RGB LED on the DevKitM-1 and a strapping pin (along with GPIO9 and GPIO25); a simple digitalWrite will not turn it on, and any load connected to it during reset can cause the boot mode to fail. Avoid GPIO26/27 if you use the USB-C port: they carry the USB-Serial/JTAG (D−/D+). The serial console goes through this same USB 2.0 full speed (12 Mbps), which is also used for flashing and debugging. Remember: 3.3 V logic, 19 GPIOs in total, no DAC. Compile with idf.py -DIDF_TARGET=esp32h2 flash or from the Arduino IDE, and print “H2 alive — no Wi-Fi here” to the console to make it a habit.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials