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/PatternInfinity.h | |
| parent | aa28e2a93baaf90083b2d556c0ac80602d9940aa (diff) | |
Clean-up and fix some examples
Diffstat (limited to 'examples/AuroraDemo/PatternInfinity.h')
| -rw-r--r-- | examples/AuroraDemo/PatternInfinity.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/AuroraDemo/PatternInfinity.h b/examples/AuroraDemo/PatternInfinity.h index 0c068ad..c99f329 100644 --- a/examples/AuroraDemo/PatternInfinity.h +++ b/examples/AuroraDemo/PatternInfinity.h @@ -31,7 +31,7 @@ public: unsigned int drawFrame() { // dim all pixels on the display slightly // to 250/255 (98%) of their current brightness - blur2d(effects.leds, MATRIX_WIDTH > 255 ? 255 : MATRIX_WIDTH, MATRIX_HEIGHT > 255 ? 255 : MATRIX_HEIGHT, 250); + blur2d(effects.leds, VPANEL_W > 255 ? 255 : VPANEL_W, VPANEL_H > 255 ? 255 : VPANEL_H, 250); // effects.DimAll(250); effects.ShowFrame(); @@ -41,7 +41,7 @@ public: // the horizontal position of the head of the infinity sign // oscillates from 0 to the maximum horizontal and back - int x = (MATRIX_WIDTH - 1) - effects.p[1]; + int x = (VPANEL_W - 1) - effects.p[1]; // the vertical position of the head oscillates // from 8 to 23 and back (hard-coded for a 32x32 matrix) |
