We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc19255 commit 876a619Copy full SHA for 876a619
libraries/LED_Matrix/src/LED_Matrix.h
@@ -171,6 +171,14 @@ class LED_Matrix {
171
j = (j + 1) % _lines;
172
memcpy(framebuffer, (uint32_t*)frame, sizeof(frame));
173
}
174
+ void render_buffer(const uint32_t _frame[3]){
175
+ uint32_t frame[3];
176
+ static int j = 0;
177
+ frame[0] = reverse(*(_frame+(j*4)+0));
178
+ frame[1] = reverse(*(_frame+(j*4)+1));
179
+ frame[2] = reverse(*(_frame+(j*4)+2));
180
+ memcpy(framebuffer, (uint32_t*)frame, sizeof(frame));
181
+ }
182
void load_wrapper(const uint32_t frames[][4], uint32_t howMany) {
183
_frames = (uint32_t*)frames;
184
_lines = (howMany / 4) / sizeof(uint32_t);
0 commit comments