kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Inky Frame: reset latched SR state after read.
rodzic
5251baf764
commit
2ea5de97df
|
@ -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):
|
||||
|
|
Ładowanie…
Reference in New Issue