aboutsummaryrefslogtreecommitdiff
path: root/examples/AuroraDemo/PatternMunch.h
diff options
context:
space:
mode:
authormrcodetastic <12006953+mrcodetastic@users.noreply.github.com>2024-07-28 22:00:45 +0100
committermrcodetastic <12006953+mrcodetastic@users.noreply.github.com>2024-07-28 22:00:45 +0100
commitf2634319ab7ebfe22fc6d2ebabcdd27879f3667e (patch)
treed8834f64f0dc4349bf34cf29a6831a12063b1435 /examples/AuroraDemo/PatternMunch.h
parentaa28e2a93baaf90083b2d556c0ac80602d9940aa (diff)
Clean-up and fix some examples
Diffstat (limited to 'examples/AuroraDemo/PatternMunch.h')
-rw-r--r--examples/AuroraDemo/PatternMunch.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/AuroraDemo/PatternMunch.h b/examples/AuroraDemo/PatternMunch.h
index f580828..092dca1 100644
--- a/examples/AuroraDemo/PatternMunch.h
+++ b/examples/AuroraDemo/PatternMunch.h
@@ -40,8 +40,8 @@ public:
unsigned int drawFrame() {
- for (uint16_t x = 0; x < MATRIX_WIDTH; x++) {
- for (uint16_t y = 0; y < MATRIX_HEIGHT; y++) {
+ for (uint16_t x = 0; x < VPANEL_W; x++) {
+ for (uint16_t y = 0; y < VPANEL_H; y++) {
effects.leds[XY16(x, y)] = (x ^ y ^ flip) < count ? effects.ColorFromCurrentPalette(((x ^ y) << 2) + generation) : CRGB::Black;
// The below is more pleasant
@@ -51,13 +51,13 @@ public:
count += dir;
- if (count <= 0 || count >= MATRIX_WIDTH) {
+ if (count <= 0 || count >= VPANEL_W) {
dir = -dir;
}
if (count <= 0) {
if (flip == 0)
- flip = MATRIX_WIDTH-1;
+ flip = VPANEL_W-1;
else
flip = 0;
}