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/PatternPulse.h | |
| parent | aa28e2a93baaf90083b2d556c0ac80602d9940aa (diff) | |
Clean-up and fix some examples
Diffstat (limited to 'examples/AuroraDemo/PatternPulse.h')
| -rw-r--r-- | examples/AuroraDemo/PatternPulse.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/AuroraDemo/PatternPulse.h b/examples/AuroraDemo/PatternPulse.h index 4d4ba69..8992a4d 100644 --- a/examples/AuroraDemo/PatternPulse.h +++ b/examples/AuroraDemo/PatternPulse.h @@ -52,17 +52,17 @@ class PatternPulse : public Drawable { } if (step == 0) { - dma_display->drawCircle(centerX, centerY, step, effects.ColorFromCurrentPalette(hue)); + matrix.drawCircle(centerX, centerY, step, effects.ColorFromCurrentPalette(hue)); step++; } else { if (step < maxSteps) { // initial pulse - dma_display->drawCircle(centerX, centerY, step, effects.ColorFromCurrentPalette(hue, pow(fadeRate, step - 2) * 255)); + matrix.drawCircle(centerX, centerY, step, effects.ColorFromCurrentPalette(hue, pow(fadeRate, step - 2) * 255)); // secondary pulse if (step > 3) { - dma_display->drawCircle(centerX, centerY, step - 3, effects.ColorFromCurrentPalette(hue, pow(fadeRate, step - 2) * 255)); + matrix.drawCircle(centerX, centerY, step - 3, effects.ColorFromCurrentPalette(hue, pow(fadeRate, step - 2) * 255)); } step++; } |
