How to use the onboard LED on the ESP32

您所在的位置:网站首页 esp32-c3s How to use the onboard LED on the ESP32

How to use the onboard LED on the ESP32

2023-09-11 21:58| 来源: 网络整理| 查看: 265

I just bought an ESP32-C3-DevKitC-02 from Espressif, which features an onboard color LED. I'm a bit of a newbie in this space, so I thought I'd start by trying to get a simple "blink" program running. I've installed the Espressif VSCode extension, and I can successfully compile and load (flash) code. ...But the basic "blink" example doesn't blink the LED --- probably because the GPIO number is wrong. I did find a library for managing LEDs for this board, but it is generic and also accepts a GPIO as input, and running its sample code didn't work either. (Both the generic blink and the library samples specified GPIO 5 as the connection.)

Does anybody know what the right value is, or am I missing something else?



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3