Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author5chmidti <44101708+5chmidti@users.noreply.github.com>2020-04-11 03:37:58 +0300
committer5chmidti <44101708+5chmidti@users.noreply.github.com>2020-10-26 18:55:48 +0300
commit2877f927ec76825add987844a12990aba816df86 (patch)
tree3a249840812b195336c62db3b1aac19cc3c374a4 /examples
parent7db18f66ada0762a1e2c8f31e88324738e87fd11 (diff)
use prefix notation for ++ and -- where possible
Diffstat (limited to 'examples')
-rw-r--r--examples/ColorPalette/ColorPalette.ino4
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());
}
}