NeoPixel-KnightRider icon indicating copy to clipboard operation
NeoPixel-KnightRider copied to clipboard

Fix for knightRider function

Open cruzcranford opened this issue 6 years ago • 0 comments

The first for loop for the function knightRider should most likely be:

for(uint16_t i=0; i < cycles; i++){

It is currently set to int i = 1, when the lights loop back around to the first pixel, the color is wrong because it has no data for it and displays white, as well this fixes the comparison of the value i to cycles so they are of the same data type.

cruzcranford avatar Jun 03 '19 20:06 cruzcranford