diff options
author | Mark Kriegsman <1334634+kriegsman@users.noreply.github.com> | 2020-11-02 19:44:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 19:44:39 +0300 |
commit | 2fbac71e7b5f98e59f5dd7a472b714c9c882728a (patch) | |
tree | 564d7b2281c286b2360b938e495510fb145584d9 /examples | |
parent | a3e14787b7600fb630e6ac8de89d4386d2f4a879 (diff) | |
parent | fccbed9fdf63e31d90d96f4794fb7457b95cccc6 (diff) |
Merge pull request #997 from 5chmidti/prefixOp
use prefix notation for ++ and -- where possible
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ColorPalette/ColorPalette.ino | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ColorPalette/ColorPalette.ino b/examples/ColorPalette/ColorPalette.ino index 4d64efb3..6ccd5c1b 100644 --- a/examples/ColorPalette/ColorPalette.ino +++ b/examples/ColorPalette/ColorPalette.ino @@ -62,7 +62,7 @@ void FillLEDsFromPaletteColors( uint8_t colorIndex) { uint8_t brightness = 255; - for( int i = 0; i < NUM_LEDS; i++) { + for( int i = 0; i < NUM_LEDS; ++i) { leds[i] = ColorFromPalette( currentPalette, colorIndex, brightness, currentBlending); colorIndex += 3; } @@ -101,7 +101,7 @@ void ChangePalettePeriodically() // This function fills the palette with totally random colors. void SetupTotallyRandomPalette() { - for( int i = 0; i < 16; i++) { + for( int i = 0; i < 16; ++i) { currentPalette[i] = CHSV( random8(), 255, random8()); } } |