![]() ![]() Makes the Onboard LED of ESP32-C3-DevKITM-1 glow in colour pattern from White -> Red -> Green -> Blue -> Yellow The same logic was followed in order to write a program to make the onboard LED glow in a color pattern. Now, your Onboard LED of the ESP32 C3 board should start blinking magenta and can be monitored by the Idf.py monitor command. Step6: Come back now to your ESP-IDF CMD Application and execute step4 to step7 of the previous single blink example. We set these values to 255, 0, 255 to obtain Magenta Colour. Set these values as required, to obtain your desired color as the output. Here, we used the Notepad application to open and edit the blink.c file.Īs instructed from the given comments, the highlighted values in the above figure are the RGB values of the glowing LED. ![]() Step5: Open blink -> main -> blink.c file in any suitable application as per your preference. Here, in our case, the new blink folder was made on the Desktop. Step4: Now, navigate to the newly created blink folder in file explorer. In order to do so, follow Step3 of the previous single blink example. LED Colour and Pattern on ESP32-C3-DevKITM-1Īs our ESP32 C3 DevKITM-1 board has an RGB LED, we’ll now see how to configure it to the desired color. The Idf.py monitor command gives the real-time status of the LED from the board.Ģ. Now, your Onboard LED of the ESP32 C3 board should start blinking white. Once the flashing is complete, you’ll get a Done message as shown below. ![]() This can be found using the device manager on your PC. Here (PORT) is the Port at which your board is connected. Step7: Connect your esp board now and flash the program using idf.py -p (PORT) flash. Step6: Now build the program using the idf.py build command. Step5: Execute idf.py set-target and idf.py menuconfig commands to make the program compatible with the board you have. Step4: Switch to the newly created folder using the cd blink command. This makes a copy of the blinking folder situated in the examples folder of the esp-idf home directory in the current location. Step3: Use xcopy /e /i %IDF_PATH%\examples\get-started\blink blink command. Step2: By default, you will be in the esp-idf home directory, change the directory by using cd. Step1: Launch your ESP-IDF CMD Application. Single Blink LED Use Case on ESP32-C3-DevKITM-1 Before you start with this tutorial you may want to check the: Getting Started with Espressif’s ESP32-C3-DevKITM-1 on ESP-IDF ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |