From 411d1551876f57257c639e9f720a3b5b20ba330b Mon Sep 17 00:00:00 2001 From: starcalc Date: Tue, 7 Mar 2017 23:26:02 +0100 Subject: [PATCH 1/2] Pixelreihenfolge beim Plasma aktualisiert. --- pixelprojektor/NeoPatterns.cpp | 3 ++- pixelprojektor/NeoPatterns.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pixelprojektor/NeoPatterns.cpp b/pixelprojektor/NeoPatterns.cpp index de2697b..a9c377e 100644 --- a/pixelprojektor/NeoPatterns.cpp +++ b/pixelprojektor/NeoPatterns.cpp @@ -524,7 +524,8 @@ void NeoPatterns::PlasmaUpdate() // Scale the color up to 0..7 . Max brightness is 7. //strip.setPixelColor(col + (edge * row), strip.Color(color_4, 0, 0) ); - setPixelColor(col + (edge * row), Color(color_1, color_2, color_3)); + + setPixelColor(xyToPos(row, col), Color(color_1, color_2, color_3)); } } show(); diff --git a/pixelprojektor/NeoPatterns.h b/pixelprojektor/NeoPatterns.h index bd02db2..b439166 100644 --- a/pixelprojektor/NeoPatterns.h +++ b/pixelprojektor/NeoPatterns.h @@ -36,7 +36,7 @@ class NeoPatterns : public Adafruit_NeoPixel void Icon(uint8_t fontchar, String iconcolor = "#FFFFFF", uint8_t interval = 30); void IconUpdate(); void IconComplete(); - void Plasma(float phase = 0, float phaseIncrement = 0.03, float colorStretch = 0.3, uint8_t interval = 60); // 0.08 and 0.11 + void Plasma(float phase = 0, float phaseIncrement = 0.08, float colorStretch = 0.11, uint8_t interval = 60); // 0.08 and 0.11 // 0.03 und 0.3 void PlasmaUpdate(); void SetColor1(uint32_t color); From aa67163a8b80007e6a6c0f73906fdd5b165f1b3e Mon Sep 17 00:00:00 2001 From: starcalc Date: Wed, 8 Mar 2017 01:32:33 +0100 Subject: [PATCH 2/2] HEEELLLLLLL :) --- pixelprojektor/pixelprojektor.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pixelprojektor/pixelprojektor.ino b/pixelprojektor/pixelprojektor.ino index 6079a5c..7377b95 100644 --- a/pixelprojektor/pixelprojektor.ino +++ b/pixelprojektor/pixelprojektor.ino @@ -174,7 +174,8 @@ void setup() { strip.begin(); strip.clear(); - strip.setBrightness(64); + // strip.setBrightness(64); + strip.setBrightness(255); // HEEELLLLLLL :) strip.show(); stopAfterCompletion = false; // Default