2#include "Arduino_LED_Matrix.h"
80 if (
cfg.update_callback !=
nullptr &&
count++ %
cfg.update_frequency == 0) {
82 cfg.update_callback(&
cfg,
this);
89 bool &
ledXY(uint8_t x, uint8_t y) {
90 if (
cfg.y_mirror) y =
cfg.y - y - 1;
97 if (
p_vol !=
nullptr) {
98 return p_vol->volume();
101 if (
p_fft !=
nullptr) {
102 for (
int j = 0; j <
cfg.x; j++) {
103 float value =
p_fft->getMagnitude(j);
115 for (uint8_t y = 0; y < currY; y++) {
119 for (uint8_t y = currY; y <
cfg.y; y++) {
162 for (
int x = 1; x <
cfg.x; x++) {
163 for (
int y = 0; y <
cfg.y; y++) {
167 for (
int y = 0; y <
cfg.y; y++) {
176 for (
int x = 0; x < cfg->
x; x++) {
179 LOGD(
"x: %d, y: %d", x, currY);
190 static_cast<float>(cfg->
y));