Skip to content

LED NOTES

Introduction

Note

In this section, we will talk about the onboard LED light on the DNESP32S3M development board. By modify the GPIO pin, the code can be used for other boards as well.

The LED

LED

The Circuit Onboard

LED_CIRCUIT

As can be seen, the GPIO to control the LED is IO1.

The Effect

LED-RED

Dependencies

dep

Key Functions

Function Prototype Explanation Example
void led_init(void) Initialize the LED led_init();
void led(int x) Control the LED led(1);
void led_toggle(void) Toggle the LED led_toggle();