From 2877f927ec76825add987844a12990aba816df86 Mon Sep 17 00:00:00 2001 From: 5chmidti <44101708+5chmidti@users.noreply.github.com> Date: Sat, 11 Apr 2020 02:37:58 +0200 Subject: use prefix notation for ++ and -- where possible --- examples/ColorPalette/ColorPalette.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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()); } } -- cgit v1.2.3