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/PatternCube.h | |
| parent | aa28e2a93baaf90083b2d556c0ac80602d9940aa (diff) | |
Clean-up and fix some examples
Diffstat (limited to 'examples/AuroraDemo/PatternCube.h')
| -rw-r--r-- | examples/AuroraDemo/PatternCube.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/AuroraDemo/PatternCube.h b/examples/AuroraDemo/PatternCube.h index f2c60bc..bebf5c8 100644 --- a/examples/AuroraDemo/PatternCube.h +++ b/examples/AuroraDemo/PatternCube.h @@ -158,7 +158,7 @@ class PatternCube : public Drawable { uint8_t blurAmount = beatsin8(2, 10, 255); #if FASTLED_VERSION >= 3001000 - blur2d(effects.leds, MATRIX_WIDTH, MATRIX_HEIGHT, blurAmount); + blur2d(effects.leds, VPANEL_W, VPANEL_H, blurAmount); #else effects.DimAll(blurAmount); effects.ShowFrame(); #endif @@ -188,7 +188,7 @@ class PatternCube : public Drawable { { e = edge + i; if (!e->visible) { - dma_display->drawLine(screen[e->x].x, screen[e->x].y, screen[e->y].x, screen[e->y].y, color); + matrix.drawLine(screen[e->x].x, screen[e->x].y, screen[e->y].x, screen[e->y].y, color); } } @@ -200,7 +200,7 @@ class PatternCube : public Drawable { e = edge + i; if (e->visible) { - dma_display->drawLine(screen[e->x].x, screen[e->x].y, screen[e->y].x, screen[e->y].y, color); + matrix.drawLine(screen[e->x].x, screen[e->x].y, screen[e->y].x, screen[e->y].y, color); } } |
