Skip to content

Instantly share code, notes, and snippets.

@IsmailSan
Created September 16, 2019 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IsmailSan/6e6450ab0165975ad82bf0da2af9ba96 to your computer and use it in GitHub Desktop.
Save IsmailSan/6e6450ab0165975ad82bf0da2af9ba96 to your computer and use it in GitHub Desktop.
#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