From 934117e618df49b039740e52488d8080e36bb95b Mon Sep 17 00:00:00 2001 From: Kattni Rembor Date: Wed, 13 Jun 2018 13:49:56 -0400 Subject: [PATCH] Moved position print statement, changed button print. --- Rotary_Encoder/rotary_encoder_volume.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rotary_Encoder/rotary_encoder_volume.py b/Rotary_Encoder/rotary_encoder_volume.py index fc444d9c..3aca397b 100755 --- a/Rotary_Encoder/rotary_encoder_volume.py +++ b/Rotary_Encoder/rotary_encoder_volume.py @@ -21,15 +21,15 @@ while True: if position_change > 0: for _ in range(position_change): cc.send(ConsumerControlCode.VOLUME_INCREMENT) - print(current_position) + print(current_position) elif position_change < 0: for _ in range(-position_change): cc.send(ConsumerControlCode.VOLUME_DECREMENT) - print(current_position) + print(current_position) last_position = current_position if not button.value and button_state is None: button_state = "pressed" if button.value and button_state == "pressed": - print("button") + print("Button pressed.") cc.send(ConsumerControlCode.PLAY_PAUSE) button_state = None