Definition at line 86 of file FestivalStick.ino.
86 {
87
89
90 int num_leds =
args.num_leds;
91 float leds_per_turn =
args.leds_per_turn;
92 float width_cm =
args.width_cm;
93
94
95 const float circumference = leds_per_turn;
96 const float radius = circumference / (2.0 *
PI);
97 const float angle_per_led = 2.0 *
PI / leds_per_turn;
98 const float height_per_turn_cm = width_cm;
99 const float height_per_led =
100 height_per_turn_cm /
101 leds_per_turn * 1.3;
102
103
104
105 for (int i = 0; i < num_leds; i++) {
106 float angle = i * angle_per_led;
107 float r = radius + 10 + i * height_per_led;
108
109
110 float x = r * cos(angle);
111 float y = r * sin(angle);
112
113
115 }
116
118
119
122}
References args, fl::HeapVector< T >::data(), FASTLED_WARN, PI, screenMap, x, and y.