fix(led-driver): stop loading patterns main and sync tick call
This commit is contained in:
@@ -12,11 +12,18 @@ class Settings(dict):
|
||||
self.color_order = self.get_color_order(self["color_order"])
|
||||
|
||||
def set_defaults(self):
|
||||
|
||||
self["led_pin"] = 10
|
||||
self["num_leds"] = 119
|
||||
|
||||
self["color_order"] = "rgb"
|
||||
self["name"] = "a"
|
||||
|
||||
sta = network.WLAN(network.STA_IF)
|
||||
sta.active(True)
|
||||
#use led-mac for name
|
||||
mac = sta.config("mac")
|
||||
mac = ubinascii.hexlify(mac).decode().lower()
|
||||
self["name"] = "led-" + mac
|
||||
|
||||
self["debug"] = False
|
||||
self["default"] = "on"
|
||||
|
||||
Reference in New Issue
Block a user