diff options
author | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2022-12-04 13:39:15 +0100 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2022-12-04 13:39:15 +0100 |
commit | 5c749c6c772925da9b69ea6f5be8b641d941a750 (patch) | |
tree | 36c0725e16f765f050e6208f2c74ad5845f07903 | |
parent | c3b4742eeceee9250f8059972dd150f38e2eb021 (diff) | |
download | Luxcena-Neo-5c749c6c772925da9b69ea6f5be8b641d941a750.tar.gz Luxcena-Neo-5c749c6c772925da9b69ea6f5be8b641d941a750.zip |
Merge in upstream
-rw-r--r-- | NeoRuntime/Runtime/luxcena_neo/strip.py | 7 | ||||
-rw-r--r-- | NeoRuntime/builtin/strandtest/script.py | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/NeoRuntime/Runtime/luxcena_neo/strip.py b/NeoRuntime/Runtime/luxcena_neo/strip.py index aa5b2d2..b1b90ba 100644 --- a/NeoRuntime/Runtime/luxcena_neo/strip.py +++ b/NeoRuntime/Runtime/luxcena_neo/strip.py @@ -137,6 +137,13 @@ class Strip: self.TMPCOLORSTATE[n] = c self.strip.setPixelColor(n, c) + # self.strip.setPixelColor(n, + # (0 << 24) + # | (int(((c & 0x00FF0000) >> 16) * ((self.COLOR_CALIBRATION[n] & 0x00FF0000) >> 16)) << 16) + # | (int(((c & 0x0000FF00) >> 8) * ((self.COLOR_CALIBRATION[n] & 0x0000FF00) >> 8)) << 8) + # | (int(((c & 0x000000FF) ) * (self.COLOR_CALIBRATION[n] & 0x000000FF) ) ) + # ) + def set_pixel_color_XY(self, x, y, *color): """Set LED at position n to the provided 24-bit color value (in RGB order). """ diff --git a/NeoRuntime/builtin/strandtest/script.py b/NeoRuntime/builtin/strandtest/script.py index 50bac1e..bee2c94 100644 --- a/NeoRuntime/builtin/strandtest/script.py +++ b/NeoRuntime/builtin/strandtest/script.py @@ -60,10 +60,7 @@ def theaterChaseRainbow(wait_ms=50): class Main(NeoBehaviour): def on_start(self): - colorWipe(*(255, 0, 0)) # Red wipe - colorWipe(*(0, 255, 0)) # Blue wipe - colorWipe(*(0, 0, 255)) # Green wipe - + # Do an endless loop with some default ixel test patterns while True: theaterChase(*(127, 127, 127)) # White theater chase theaterChase(*(127, 0, 0)) # Red theater chase |