parent
725259104e
commit
963494289d
9
code.py
9
code.py
|
@ -69,7 +69,6 @@ def play_pause():
|
|||
consumer_control.send(ConsumerControlCode.PLAY_PAUSE)
|
||||
print('Play/Pause')
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
while True:
|
||||
if buttonPin.value == False:
|
||||
|
@ -77,7 +76,6 @@ while True:
|
|||
mute_volumen()
|
||||
elif mode == 1:
|
||||
play_pause()
|
||||
middle_mouse_button()
|
||||
elif mode == 2:
|
||||
middle_mouse_button()
|
||||
else:
|
||||
|
@ -91,7 +89,6 @@ while True:
|
|||
mode += 1
|
||||
elif mode == 1:
|
||||
play_pause()
|
||||
middle_mouse_button()
|
||||
mode += 1
|
||||
elif mode == 2:
|
||||
middle_mouse_button()
|
||||
|
@ -107,10 +104,10 @@ while True:
|
|||
if mode == 0:
|
||||
control_volumen(dtPin.value)
|
||||
elif mode == 1:
|
||||
scroll_up_down(dtPin.value)
|
||||
elif mode == 2:
|
||||
previous_next_track(dtPin.value)
|
||||
elif mode == 2:
|
||||
scroll_up_down(dtPin.value)
|
||||
else:
|
||||
mode = 0
|
||||
control_volumen(dtPin.value)
|
||||
previousValue = clkPin.value
|
||||
previousValue = clkPin.value
|
||||
|
|
Loading…
Reference in New Issue