LightCluster.h 551 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // Created by emilr on 2022-04-13.
  3. //
  4. #include "stdint.h"
  5. #ifndef UNTITLED_LIGHTCLUSTER_H
  6. #define UNTITLED_LIGHTCLUSTER_H
  7. struct light {
  8. int mapped;
  9. uint32_t color;
  10. };
  11. class LightCluster {
  12. private:
  13. unsigned long lastRun;
  14. void runSetup();
  15. bool shouldRun();
  16. public:
  17. int numLights;
  18. int animationNumber;
  19. void runAnimation();
  20. void changeAnimation(int newAnimationNumber);
  21. LightCluster(struct light *incomingLights, int size, int animation);
  22. struct light *lights;
  23. };
  24. #endif //UNTITLED_LIGHTCLUSTER_H