from machine import Pin
#from micropython_rotary_encoder import RotaryEncoderRP2
from mxclass import Matrix
#from luminix import Luminix
from colors import *
from time import sleep, sleep_ms
mx = Matrix(Pin(0), 16, 4)
mx.fill(AMBER)
mx.write()
for tup in (0,0), (0,1), (1,0), (1,1):
mx[tup] = BLUE
mx.write()
sleep(1)
"""
btn = Pin(15, Pin.IN, Pin.PULL_UP)
enc = RotaryEncoderRP2(
Pin(17, Pin.IN, Pin.PULL_DOWN),
Pin(16, Pin.IN, Pin.PULL_DOWN),
btn,
# rotenc tweaking
debounce_ms=30,
fast_ms=50,
# btn tweaking
click_ms=300,
step_ms=200,
hold_ms=300,
)
l = Luminix(mx, enc)
"""