Fix base pattern class name

This commit is contained in:
2026-01-21 09:57:37 +13:00
parent eaa6acf100
commit f4ef415b5a
2 changed files with 2 additions and 2 deletions

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):

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