Update default delay to 300 microseconds per Adafruit

https://adafruit.github.io/Adafruit_NeoPixel/html/class_adafruit___neo_pixel.html says we need 300 microseconds delay. This definitely helped glitching on my setup!
pull/18/head
Max Carlson 2024-02-02 15:58:53 +02:00
rodzic 8012e3b6a6
commit 093b30ea17
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -73,7 +73,7 @@ class Neopixel:
# 'brightnessvalue', # brightness scale factor 1..255
# ]
def __init__(self, num_leds, state_machine, pin, mode="RGB", delay=0.0001):
def __init__(self, num_leds, state_machine, pin, mode="RGB", delay=0.0003):
"""
Constructor for library class