diff --git a/examples/RgbStripSerial/RgbStripSerial.ino b/examples/RgbStripSerial/RgbStripSerial.ino index 1d7f1d0..1434fb1 100644 --- a/examples/RgbStripSerial/RgbStripSerial.ino +++ b/examples/RgbStripSerial/RgbStripSerial.ino @@ -22,10 +22,11 @@ char cmdBuffer[CMDBUFSIZE]; // global settings and initial values int animation = ALA_OFF; AlaColor color = 0xdddddd; +AlaColor white = 0xffffff; AlaPalette palette = alaPalNull; int paletteId=0; -float brightness = 0.4; -long duration = 1000; +float brightness = 0.3; +long duration = 5000; void setup() @@ -68,7 +69,7 @@ void loop() break; case 'B': brightness = atoi(&cmdBuffer[2]); - rgbStrip.setBrightness(color.scale((float)brightness / 100)); + rgbStrip.setBrightness(white.scale((float)brightness / 100)); Serial.println("OK"); break; case 'C': diff --git a/library.properties b/library.properties index e48a6ef..6da84d3 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ALA -version=2.3.3 +version=2.3.4 author=bportaluri maintainer=Bruno Portaluri sentence=Arduino Light Animation (ALA) library