AnimationSetups.ino 668 B

12345678910111213141516171819202122232425262728293031323334
  1. void setup_rainbow() {
  2. normal_setup();
  3. animation_var_1 = 5.12;
  4. }
  5. void normal_setup() {
  6. clear_strip();
  7. animation_step_time = 100;
  8. animation_i = 0;
  9. animation_var_1 = 0;
  10. }
  11. void clean_animation_table_1() {
  12. for (int i = 0; i < 10; i++) {
  13. for (int y = 0; y < 8; y++) {
  14. animation_table_1[i][y] = 0;
  15. }
  16. //Start R, Start G, Start B, fR, fG, fB, cycle, how many cycles
  17. }
  18. }
  19. void setup_random1() {
  20. clean_animation_table_1();
  21. normal_setup();
  22. animation_var_1 = 10; //How many sections
  23. animation_step_time = 100;
  24. }
  25. void setup_random2() {
  26. clean_animation_table_1();
  27. normal_setup();
  28. animation_var_1 = 5;
  29. animation_step_time = 50;
  30. }