mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-16 10:04:30 +01:00
fix some stuff
This commit is contained in:
@@ -55,9 +55,10 @@ class NeoPattern : public Adafruit_NeoPixel
|
||||
|
||||
void onCompleteDefault(int pixels) {
|
||||
if(ActivePattern != RAINBOW_CYCLE){
|
||||
//Serial.println("reversing");
|
||||
Reverse();
|
||||
}
|
||||
Serial.println("pattern completed");
|
||||
//Serial.println("pattern completed");
|
||||
}
|
||||
|
||||
// Update the pattern
|
||||
@@ -109,7 +110,7 @@ class NeoPattern : public Adafruit_NeoPixel
|
||||
{
|
||||
OnComplete(numPixels()); // call the comlpetion callback
|
||||
} else {
|
||||
Reverse();
|
||||
onCompleteDefault(numPixels());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -124,7 +125,7 @@ class NeoPattern : public Adafruit_NeoPixel
|
||||
{
|
||||
OnComplete(numPixels()); // call the comlpetion callback
|
||||
} else {
|
||||
Reverse();
|
||||
onCompleteDefault(numPixels());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -313,7 +314,7 @@ class NeoPattern : public Adafruit_NeoPixel
|
||||
// The colours are a transition r - g - b - back to r.
|
||||
uint32_t Wheel(byte WheelPos)
|
||||
{
|
||||
if(WheelPos == 0) return Color(0,0,0);
|
||||
//if(WheelPos == 0) return Color(0,0,0);
|
||||
WheelPos = 255 - WheelPos;
|
||||
if(WheelPos < 85)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user