diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-08-17 15:13:11 +0100 |
|---|---|---|
| committer | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-08-17 15:13:11 +0100 |
| commit | 3ac0fa6f83f7fa19d48c538f91444c74f3af9bd6 (patch) | |
| tree | 7b60e2a0f6c83904ca8b0e28c9f3dd42c412adba /examples/AuroraDemo/PatternInvaders.h | |
| parent | a7483a8b7d2f1839266a04f6ec71324b4516b9bd (diff) | |
Remove last remaining legacy usage of the library
Diffstat (limited to 'examples/AuroraDemo/PatternInvaders.h')
| -rw-r--r-- | examples/AuroraDemo/PatternInvaders.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/AuroraDemo/PatternInvaders.h b/examples/AuroraDemo/PatternInvaders.h index cad004c..e2df82e 100644 --- a/examples/AuroraDemo/PatternInvaders.h +++ b/examples/AuroraDemo/PatternInvaders.h @@ -36,7 +36,7 @@ class PatternInvadersSmall : public Drawable { } void start() { - matrix.fillScreen(0); + dma_display->fillScreen(0); } unsigned int drawFrame() { @@ -80,7 +80,7 @@ class PatternInvadersMedium : public Drawable { } void start() { - matrix.fillScreen(0); + dma_display->fillScreen(0); } unsigned int drawFrame() { @@ -92,10 +92,10 @@ class PatternInvadersMedium : public Drawable { if (random(0, 2) == 1) color = color1; - matrix.fillRect(x + (i * 2), y + (j * 2), x + (i * 2 + 1), y + (j * 2 + 1), color); + dma_display->fillRect(x + (i * 2), y + (j * 2), x + (i * 2 + 1), y + (j * 2 + 1), color); if (i < 2) - matrix.fillRect(x + (8 - i * 2), y + (j * 2), x + (9 - i * 2), y + (j * 2 + 1), color); + dma_display->fillRect(x + (8 - i * 2), y + (j * 2), x + (9 - i * 2), y + (j * 2 + 1), color); } } @@ -122,11 +122,11 @@ class PatternInvadersLarge : public Drawable { } void start() { - matrix.fillScreen(0); + dma_display->fillScreen(0); } unsigned int drawFrame() { - matrix.fillScreen(0); + dma_display->fillScreen(0); CRGB color1 = effects.ColorFromCurrentPalette(random(0, 255)); @@ -138,10 +138,10 @@ class PatternInvadersLarge : public Drawable { color = color1; } - matrix.fillRect(1 + x * 6, 1 + y * 6, 5 + x * 6, 5 + y * 6, color); + dma_display->fillRect(1 + x * 6, 1 + y * 6, 5 + x * 6, 5 + y * 6, color); if (x < 2) - matrix.fillRect(1 + (4 - x) * 6, 1 + y * 6, 5 + (4 - x) * 6, 5 + y * 6, color); + dma_display->fillRect(1 + (4 - x) * 6, 1 + y * 6, 5 + (4 - x) * 6, 5 + y * 6, color); } } |
