kopia lustrzana https://github.com/s-marley/ESP32_FFT_VU
Update ESP32_FFT_VU.ino
Fixed apparent typo that resulted in matrix not being addressed correctly unless it was perfectly square (I was using 16x9)pull/3/head
rodzic
ca6e16e8f2
commit
a4b674a7c0
|
@ -79,7 +79,7 @@ uint16_t XY( uint8_t x, uint8_t y) {
|
|||
i = (y * kMatrixWidth) + reverseX;
|
||||
} else {
|
||||
// Even rows run forwards
|
||||
i = (y * kMatrixHeight) + x;
|
||||
i = (y * kMatrixWidth) + x;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue