![]() |
Core2 for AWS IoT EduKit BSP 1.5.1
|
The SK6812 library is used to drive the LED bars with the ESP32 over I2C and comes from the open source loboris/MicroPython_ESP32_psRAM_LoBo project. The core2foraws/core2foraws.h file in AWS IoT EduKit board support package (BSP) provides convenience wrapper functions to this library with preset parameters.
To enable this feature using KConfig, use the command pio run --environment core2foraws --target menuconfig from within the root of the project directory in your PlatformIO terminal window and go to the menu Component Config --> Core2 for AWS features to set the features you want to enable.
The following example initializes the Core2 for AWS, which initializes the PMU for the battery and other user enabled hardware features — such as the SK6812. It then sets the left LED bar to green and the right LED bar to red.