#ifndef COMPONENTS_ESPECTRO32_EXAMPLES_IDF_EX_LEDS_ANIM_HPP_
#define COMPONENTS_ESPECTRO32_EXAMPLES_IDF_EX_LEDS_ANIM_HPP_
#include <ESPectro32_Board.h>
#include <ESPectro32_RGBLED_Animation.h>
#include <ESPectro32_LedMatrix_Animation.h>
static void load_ex_leds_anim() {
ESPectro32.
LED().
setAnimation(ESPectro_LED_Animation_Fading, 3000, 3);
ledMatrixAnim.setLedMatrix(ESPectro32.
LedMatrix());
ledMatrixAnim.addFrameWithData((uint8_t*)LED_MATRIX_ICON_HEART);
ledMatrixAnim.addFrameWithData((uint8_t*)LED_MATRIX_ICON_HEART_OUTLINE);
ledMatrixAnim.addFrameWithData((uint8_t*)LED_MATRIX_ICON_HEART);
ledMatrixAnim.addFrameWithData((uint8_t*)LED_MATRIX_ICON_HEART_OUTLINE);
ledM.
drawCircle(3, 3, 3, 200);
});
ledM.
fillCircle(3, 3, 3, 200);
});
ledMatrixAnim.start(3000);
}
#endif