| 12345678910111213141516171819202122232425262728293031323334 |
- //
- // Created by emilr on 2022-04-13.
- //
- #include "stdint.h"
- #ifndef UNTITLED_LIGHTCLUSTER_H
- #define UNTITLED_LIGHTCLUSTER_H
- struct light {
- int mapped;
- uint32_t color;
- };
- class LightCluster {
- private:
- unsigned long lastRun;
- void runSetup();
- bool shouldRun();
- public:
- int numLights;
- int animationNumber;
- void runAnimation();
- void changeAnimation(int newAnimationNumber);
- LightCluster(struct light *incomingLights, int size, int animation);
- struct light *lights;
- };
- #endif //UNTITLED_LIGHTCLUSTER_H
|