8 #ifndef COMPONENTS_ESPECTRO32_EXAMPLES_IDF_EX_LEDS_ANIM_HPP_
9 #define COMPONENTS_ESPECTRO32_EXAMPLES_IDF_EX_LEDS_ANIM_HPP_
11 #include <ESPectro32_Board.h>
12 #include <ESPectro32_RGBLED_Animation.h>
17 #include <ESPectro32_LedMatrix_Animation.h>
20 static void load_ex_leds_anim() {
27 ESPectro32.
LED().setAnimation(ESPectro_LED_Animation_Fading, 3000, 3);
38 glowAnim.
start(3000, 3);
66 ledMatrixAnim.setLedMatrix(ESPectro32.
LedMatrix());
68 ledMatrixAnim.addFrameWithData((uint8_t*)LED_MATRIX_ICON_HEART);
69 ledMatrixAnim.addFrameWithData((uint8_t*)LED_MATRIX_ICON_HEART_OUTLINE);
70 ledMatrixAnim.addFrameWithData((uint8_t*)LED_MATRIX_ICON_HEART);
71 ledMatrixAnim.addFrameWithData((uint8_t*)LED_MATRIX_ICON_HEART_OUTLINE);
73 ledM.drawCircle(3, 3, 3, 200);
76 ledM.fillCircle(3, 3, 3, 200);
79 ledMatrixAnim.start(3000);
Base class of Led Matrix animation.
Definition: ESPectro32_LedMatrix_Animation.h:28
A class of Neopixel RGB LED glowing animation.
Definition: ESPectro32_RGBLED_Animation.h:83
ESPectro32_RGBLED & RgbLed()
Get RGB LED object of the ESPectro32 board.
Definition: ESPectro32_Board.cpp:53
ESPectro32_LedMatrix & LedMatrix()
Get Led Matrix object.
Definition: ESPectro32_Board.cpp:149
The class represents Led Matrix.
Definition: ESPectro32_LedMatrix.h:76
Definition: RgbLedColor.h:25
ESPectro32_LED & LED()
Get LED object.
Definition: ESPectro32_Board.cpp:105
void start(uint16_t duration=0, uint16_t count=0)
Start the animation.
Definition: ESPectro32_RGBLED_Animation.cpp:138