Disable screen auto-refresh for quicker response
This commit is contained in:
parent
c6d381f359
commit
2c868f0459
1 changed files with 2 additions and 1 deletions
|
|
@ -75,17 +75,18 @@ class App:
|
|||
PIXELS[i] = 0
|
||||
GROUP[i].text = ''
|
||||
PIXELS.show()
|
||||
DISPLAY.refresh()
|
||||
|
||||
|
||||
# INITIALIZATION -----------------------
|
||||
|
||||
DISPLAY = board.DISPLAY
|
||||
DISPLAY.auto_refresh = False
|
||||
ENCODER = rotaryio.IncrementalEncoder(board.ENCODER_B, board.ENCODER_A)
|
||||
PIXELS = neopixel.NeoPixel(board.NEOPIXEL, 12, auto_write=False)
|
||||
KEYBOARD = Keyboard(usb_hid.devices)
|
||||
LAYOUT = KeyboardLayoutUS(KEYBOARD)
|
||||
|
||||
|
||||
GROUP = displayio.Group(max_size=14)
|
||||
for KEY_INDEX in range(12):
|
||||
x = KEY_INDEX % 3
|
||||
|
|
|
|||
Loading…
Reference in a new issue