diff options
| author | mrcodetastic <12006953+mrcodetastic@users.noreply.github.com> | 2024-07-28 22:00:45 +0100 |
|---|---|---|
| committer | mrcodetastic <12006953+mrcodetastic@users.noreply.github.com> | 2024-07-28 22:00:45 +0100 |
| commit | f2634319ab7ebfe22fc6d2ebabcdd27879f3667e (patch) | |
| tree | d8834f64f0dc4349bf34cf29a6831a12063b1435 /examples/AuroraDemo/PatternWave.h | |
| parent | aa28e2a93baaf90083b2d556c0ac80602d9940aa (diff) | |
Clean-up and fix some examples
Diffstat (limited to 'examples/AuroraDemo/PatternWave.h')
| -rw-r--r-- | examples/AuroraDemo/PatternWave.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/AuroraDemo/PatternWave.h b/examples/AuroraDemo/PatternWave.h index 8246a5f..90e7448 100644 --- a/examples/AuroraDemo/PatternWave.h +++ b/examples/AuroraDemo/PatternWave.h @@ -35,10 +35,10 @@ private: byte rotation = 0; - uint8_t scale = 256 / MATRIX_WIDTH; + uint8_t scale = 256 / VPANEL_W; - uint8_t maxX = MATRIX_WIDTH - 1; - uint8_t maxY = MATRIX_HEIGHT - 1; + uint8_t maxX = VPANEL_W - 1; + uint8_t maxY = VPANEL_H - 1; uint8_t waveCount = 1; @@ -58,7 +58,7 @@ public: switch (rotation) { case 0: - for (int x = 0; x < MATRIX_WIDTH; x++) { + for (int x = 0; x < VPANEL_W; x++) { n = quadwave8(x * 2 + theta) / scale; effects.drawBackgroundFastLEDPixelCRGB(x, n, effects.ColorFromCurrentPalette(x + hue)); if (waveCount == 2) @@ -67,7 +67,7 @@ public: break; case 1: - for (int y = 0; y < MATRIX_HEIGHT; y++) { + for (int y = 0; y < VPANEL_H; y++) { n = quadwave8(y * 2 + theta) / scale; effects.drawBackgroundFastLEDPixelCRGB(n, y, effects.ColorFromCurrentPalette(y + hue)); if (waveCount == 2) @@ -76,7 +76,7 @@ public: break; case 2: - for (int x = 0; x < MATRIX_WIDTH; x++) { + for (int x = 0; x < VPANEL_W; x++) { n = quadwave8(x * 2 - theta) / scale; effects.drawBackgroundFastLEDPixelCRGB(x, n, effects.ColorFromCurrentPalette(x + hue)); if (waveCount == 2) @@ -85,7 +85,7 @@ public: break; case 3: - for (int y = 0; y < MATRIX_HEIGHT; y++) { + for (int y = 0; y < VPANEL_H; y++) { n = quadwave8(y * 2 - theta) / scale; effects.drawBackgroundFastLEDPixelCRGB(n, y, effects.ColorFromCurrentPalette(y + hue)); if (waveCount == 2) |
