Skip to content

Commit

Permalink
style: lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
wilmouths committed Jun 20, 2022
1 parent 184a6a2 commit 15052e8
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/RGBLed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,12 @@ void RGBLed::gradient(int fromRed, int fromGreen, int fromBlue, int toRed, int t
float changeBlue = (float) deltaBlue / (float) 255;


// Determine the new value for each color based on the step
// stepValue = fromValue + (changeValue * stepNumber)
int stepRed = fromRed + (changeRed * step);
int stepGreen = fromGreen + (changeGreen * step);
int stepBlue = fromBlue + (changeBlue * step);

// Make step change in color
intensity(stepRed, stepGreen, stepBlue, _brightness);


// Determine the new value for each color based on the step
// stepValue = fromValue + (changeValue * stepNumber)
int stepRed = fromRed + (changeRed * step);
int stepGreen = fromGreen + (changeGreen * step);
int stepBlue = fromBlue + (changeBlue * step);

// Make step change in color
intensity(stepRed, stepGreen, stepBlue, _brightness);
}

0 comments on commit 15052e8

Please sign in to comment.