From 5c749c6c772925da9b69ea6f5be8b641d941a750 Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Sun, 4 Dec 2022 13:39:15 +0100 Subject: Merge in upstream --- NeoRuntime/Runtime/luxcena_neo/strip.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'NeoRuntime/Runtime/luxcena_neo') 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). """ -- cgit v1.2.3