| 12345678910111213141516171819202122232425262728293031323334 |
- void setup_rainbow() {
- normal_setup();
- animation_var_1 = 5.12;
- }
- void normal_setup() {
- clear_strip();
- animation_step_time = 100;
- animation_i = 0;
- animation_var_1 = 0;
- }
- void clean_animation_table_1() {
- for (int i = 0; i < 10; i++) {
- for (int y = 0; y < 8; y++) {
- animation_table_1[i][y] = 0;
- }
- //Start R, Start G, Start B, fR, fG, fB, cycle, how many cycles
- }
- }
- void setup_random1() {
- clean_animation_table_1();
- normal_setup();
- animation_var_1 = 10; //How many sections
- animation_step_time = 100;
- }
- void setup_random2() {
- clean_animation_table_1();
- normal_setup();
- animation_var_1 = 5;
- animation_step_time = 50;
- }
|