Add n params
This commit is contained in:
@@ -4,6 +4,8 @@ import utime
|
||||
import random
|
||||
import _thread
|
||||
import asyncio
|
||||
import json
|
||||
from presets import Presets
|
||||
|
||||
# Short-key parameter mapping for convenience setters
|
||||
param_mapping = {
|
||||
@@ -53,8 +55,16 @@ class Patterns:
|
||||
self.scanner_tail_length = 3 # Number of trailing pixels
|
||||
self.running = False
|
||||
self.stopped = True
|
||||
self.presets = Presets()
|
||||
self.n1 = 0
|
||||
self.n2 = 0
|
||||
self.n3 = 0
|
||||
self.n4 = 0
|
||||
self.n5 = 0
|
||||
self.n6 = 0
|
||||
|
||||
def select(self, pattern):
|
||||
|
||||
if pattern in self.patterns:
|
||||
self.selected = pattern
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user