From aef5b0db81777c5b27d0bc70dfadb253c509c82b Mon Sep 17 00:00:00 2001 From: blaz-r Date: Mon, 3 Jul 2023 13:47:50 +0200 Subject: [PATCH] Improve data transfer in show() --- neopixel.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neopixel.py b/neopixel.py index 6bb00a4..c10ded4 100644 --- a/neopixel.py +++ b/neopixel.py @@ -326,9 +326,9 @@ class Neopixel: cut = 8 if self.W_in_mode: cut = 0 - sm_put = self.sm.put - for pixval in self.pixels: - sm_put(pixval, cut) + + self.sm.put(self.pixels, cut) + time.sleep(self.delay) def fill(self, rgb_w, how_bright=None):