Coding an M5Stack Core RGB LED flasher
The M5Stack Core has internal RGB LEDs that can be commanded by the ESP32 microcontroller. The RGB LEDs are of the SK6812 programmable family variant. The SK6812 is a smart control circuit that operates an LED. The smart control circuit and light-emitting circuit are packaged inside one programmable LED source. You can refer to Figure 3.2 for viewing the physical package, mechanical dimensions, and electronic symbol of the SK6812 RGB component. Another added feature of the SK6812 LED is the ability to emit a natural white light. Therefore, the SK6812 is an RGBW light-emitting component.
Note
Obtaining the natural white color requires a technique in color mixing of the RGB emitters. The following website provides information on obtaining white and various colors: https://txwes.libguides.com/c.php?g=978475&p=7075536.
The M5Stack Core uses two SK6812 LED bars. The SK6812 LED bar is located on each side of the M5Stack Core. Figure 3.26...