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
|
#volume controller
|
||||||
def control_volumen(pinStatus):
|
def control_volumen(pinStatus):
|
||||||
if pinStatus == False:
|
if pinStatus == True:
|
||||||
print('Volumen down')
|
print('Volumen down')
|
||||||
consumer_control.send(ConsumerControlCode.VOLUME_DECREMENT)
|
consumer_control.send(ConsumerControlCode.VOLUME_DECREMENT)
|
||||||
else:
|
else:
|
||||||
|
@ -58,7 +58,7 @@ def middle_mouse_button():
|
||||||
|
|
||||||
#media control
|
#media control
|
||||||
def previous_next_track(pinStatus):
|
def previous_next_track(pinStatus):
|
||||||
if pinStatus == False:
|
if pinStatus == True:
|
||||||
print('Previous track')
|
print('Previous track')
|
||||||
consumer_control.send(ConsumerControlCode.SCAN_PREVIOUS_TRACK)
|
consumer_control.send(ConsumerControlCode.SCAN_PREVIOUS_TRACK)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue