changed spin direction for volumen control and skip track
Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>master
parent
963494289d
commit
b4af51afc4
4
code.py
4
code.py
|
@ -31,7 +31,7 @@ previousValue = True
|
|||
|
||||
#volume controller
|
||||
def control_volumen(pinStatus):
|
||||
if pinStatus == False:
|
||||
if pinStatus == True:
|
||||
print('Volumen down')
|
||||
consumer_control.send(ConsumerControlCode.VOLUME_DECREMENT)
|
||||
else:
|
||||
|
@ -58,7 +58,7 @@ def middle_mouse_button():
|
|||
|
||||
#media control
|
||||
def previous_next_track(pinStatus):
|
||||
if pinStatus == False:
|
||||
if pinStatus == True:
|
||||
print('Previous track')
|
||||
consumer_control.send(ConsumerControlCode.SCAN_PREVIOUS_TRACK)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue