remove dependency on neopixel lib for custom pixelbuffers
This commit is contained in:
parent
ea19f5bb30
commit
d4e72b98c9
@ -1,5 +1,3 @@
|
|||||||
import neopixel
|
|
||||||
|
|
||||||
from math import e, exp, pi, sin
|
from math import e, exp, pi, sin
|
||||||
|
|
||||||
from kmk.extensions import Extension
|
from kmk.extensions import Extension
|
||||||
@ -109,6 +107,8 @@ class RGB(Extension):
|
|||||||
refresh_rate=60,
|
refresh_rate=60,
|
||||||
):
|
):
|
||||||
if pixels is None:
|
if pixels is None:
|
||||||
|
import neopixel
|
||||||
|
|
||||||
self.pixels = neopixel.NeoPixel(
|
self.pixels = neopixel.NeoPixel(
|
||||||
pixel_pin,
|
pixel_pin,
|
||||||
num_pixels,
|
num_pixels,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user