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/2_PatternPlasma | |
| parent | aa28e2a93baaf90083b2d556c0ac80602d9940aa (diff) | |
Clean-up and fix some examples
Diffstat (limited to 'examples/2_PatternPlasma')
| -rw-r--r-- | examples/2_PatternPlasma/2_PatternPlasma.ino | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/2_PatternPlasma/2_PatternPlasma.ino b/examples/2_PatternPlasma/2_PatternPlasma.ino index 65f85b9..f2598fa 100644 --- a/examples/2_PatternPlasma/2_PatternPlasma.ino +++ b/examples/2_PatternPlasma/2_PatternPlasma.ino @@ -138,7 +138,7 @@ void setup() { dma_display = new MatrixPanel_I2S_DMA(mxconfig); // let's adjust default brightness to about 75% - dma_display->setBrightness8(192); // range is 0-255, 0 - 0%, 255 - 100% + dma_display->setBrightness8(255); // range is 0-255, 0 - 0%, 255 - 100% // Allocate memory and start DMA display if( not dma_display->begin() ) @@ -176,13 +176,13 @@ void loop() { for (int x = 0; x < PANE_WIDTH; x++) { for (int y = 0; y < PANE_HEIGHT; y++) { - int16_t v = 0; + int16_t v = 128; uint8_t wibble = sin8(time_counter); v += sin16(x * wibble * 3 + time_counter); v += cos16(y * (128 - wibble) + time_counter); v += sin16(y * x * cos8(-time_counter) / 8); - currentColor = ColorFromPalette(currentPalette, (v >> 8) + 127); //, brightness, currentBlendType); + currentColor = ColorFromPalette(currentPalette, (v >> 8)); //, brightness, currentBlendType); dma_display->drawPixelRGB888(x, y, currentColor.r, currentColor.g, currentColor.b); } } |
