Speed up Kitty_Paw_Keypad
This commit is contained in:
parent
ee4ebab91f
commit
c4bf13bb59
1 changed files with 4 additions and 1 deletions
|
|
@ -101,9 +101,12 @@ key3_pressed = False
|
|||
# array for button states
|
||||
key_states = [key0_pressed, key1_pressed, key2_pressed, key3_pressed]
|
||||
|
||||
last_p = p
|
||||
while True:
|
||||
# default tile grid position
|
||||
parrot0_grid[a] = p
|
||||
if last_p != p:
|
||||
parrot0_grid[a] = p
|
||||
last_p = p
|
||||
|
||||
# iterate through 4 buttons
|
||||
for i in range(4):
|
||||
|
|
|
|||
Loading…
Reference in a new issue