Changeset - 61fc6a315f27
[Not reviewed]
default
0 1 0
Dennis Fink - 6 years ago 2018-02-06 23:12:46
dennis.fink@c3l.lu
Remove empty line
1 file changed with 0 insertions and 1 deletions:
0 comments (0 inline, 0 general)
Neopixel_Goggles.ino
Show inline comments
 
@@ -164,49 +164,48 @@ class NeoPatterns : public Adafruit_NeoP
 
        else {
 
          setPixelColor(i, DimColor(getPixelColor(i)));
 
        }
 
      }
 
      Increment();
 
    }
 

	
 
    void DoubleScanner(uint32_t color, uint16_t interval) {
 
      ActivePattern = DOUBLE_SCANNER;
 
      Interval = interval;
 
      TotalSteps = (numPixels() / 2);
 
      PixelColor = color;
 
      Index = 0;
 
    }
 

	
 
    void DoubleScannerUpdate() {
 
      for (int i = 0; i < numPixels() / 2; i++) {
 
        if (i == Index) {
 
          setPixelColor(i, PixelColor); // First Eye
 
          setPixelColor(numPixels() - 1 - i, PixelColor); // Second Eye
 
        }
 
        else {
 
          setPixelColor(i, DimColor(getPixelColor(i)));
 
          setPixelColor(numPixels() - 1 - i, DimColor(getPixelColor(i)));
 

	
 
        }
 
      }
 
      Increment();
 
    }
 

	
 
    void Random(uint32_t color, uint16_t steps, uint16_t interval) {
 
      ActivePattern = RANDOM;
 
      Interval = interval;
 
      TotalSteps = steps;
 
      PixelColor = color;
 
      Index = 0;
 
    }
 

	
 
    void RandomUpdate() {
 
      setPixelColor(random(numPixels()), PixelColor);
 
      Increment();
 
    }
 

	
 
    void DoubleRandom(uint32_t color, uint16_t steps, uint16_t interval) {
 
      ActivePattern = DOUBLE_RANDOM;
 
      Interval = interval;
 
      TotalSteps = steps;
 
      PixelColor = color;
 
      Index = 0;
0 comments (0 inline, 0 general)