Inky Frame: reset latched SR state after read.

This commit is contained in:
Phil Howard 2022-12-19 15:33:24 +00:00
parent 5251baf764
commit 2ea5de97df
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
from pimoroni import ShiftRegister
from machine import Pin
from wakeup import get_shift_state
from wakeup import get_shift_state, reset_shift_state
import time
@ -16,6 +16,8 @@ LED_E = 15
SHIFT_STATE = get_shift_state()
reset_shift_state()
class Button:
def __init__(self, sr, idx, led, debounce=50):