Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include <Arduino.h>
#include <ESPectro32_Board.h>
#include <ESPectro32_RGBLED_Animation.h>
RgbLedColor_t aCol(0, 255, 0);
RgbLedColor_t bCol(255, 0, 0);
ESPectro32_RGBLED_GlowingAnimation glowAnim1(ESPectro32.RgbLed(), aCol);
ESPectro32_RGBLED_GlowingAnimation glowAnim2(ESPectro32.RgbLed(), bCol);
#include <ESPectro32_LedMatrix_Animation.h>
ESPectro32_LedMatrix_Animation ledMatrixAnim;
void setup() {
ESPectro32.begin();
}
void loop() {
ESPectro32.ButtonA().onButtonUp([]() {
glowAnim1.start();
});
ESPectro32.ButtonB().onButtonUp([]() {
glowAnim2.start();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment