Fix base pattern class name

This commit is contained in:
jimmy committed 2026-01-21 09:57:37 +13:00
1 parent eaa6acf100
commit f4ef415b5a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
import utime
from patterns_base import Patterns as PatternsBase
from patterns_base import atternsBase
class Patterns(PatternsBase):
def __init__(self, pin, num_leds, color1=(0,0,0), color2=(0,0,0), brightness=127, selected="off", delay=100):
+1 -1
View File
@@ -24,7 +24,7 @@ param_mapping = {
"auto": "auto",
}
class Patterns:
class Patterns_Base:
def __init__(self, pin, num_leds, color1=(0,0,0), color2=(0,0,0), brightness=127, selected="off", delay=100):
self.n = NeoPixel(Pin(pin, Pin.OUT), num_leds)
self.num_leds = num_leds