Fix base pattern class name
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import utime
|
import utime
|
||||||
from patterns_base import Patterns as PatternsBase
|
from patterns_base import atternsBase
|
||||||
|
|
||||||
class Patterns(PatternsBase):
|
class Patterns(PatternsBase):
|
||||||
def __init__(self, pin, num_leds, color1=(0,0,0), color2=(0,0,0), brightness=127, selected="off", delay=100):
|
def __init__(self, pin, num_leds, color1=(0,0,0), color2=(0,0,0), brightness=127, selected="off", delay=100):
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ param_mapping = {
|
|||||||
"auto": "auto",
|
"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):
|
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.n = NeoPixel(Pin(pin, Pin.OUT), num_leds)
|
||||||
self.num_leds = num_leds
|
self.num_leds = num_leds
|
||||||
|
|||||||
Reference in New Issue
Block a user