|
|
8 년 전 | |
|---|---|---|
| .. | ||
| main | 8 년 전 | |
| Makefile | 9 년 전 | |
| README.md | 8 년 전 | |
This example shows how to control intensity of LEDs using ESP32's on-board hardware LED PWM Controller module.
Operations performed by example:
Configuration of two timers (one high speed and the other low speed) that will be clocking four LEDC channels.
Configuration of four channels of LEDC module, two channels will operate in high speed mode and two in low speed mode. Each channel will drive one GPIO / LED.
Initialization of fade service to fade / gradually change intensity of LEDs.
Operation of channels in a loop by cycling through four steps that will drive LEDs as follows:
Connect four LEDs to the following LEDC channels / individual GPIOs: