Skip to content

Make color prints optional #989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@
if isinstance(packet, ColorPacket): # If the packet is color packet...
if mode == 0: # And mode is 0...
animations.color = packet.color # Update the animation to the color.
print("Color:", packet.color)
# Uncomment below to see the color tuple printed to the serial console.
# print("Color:", packet.color)
animation_color = packet.color # Keep track of the current color...
elif mode == 1: # Because if mode is 1...
animations.color = animation_color # Freeze the animation color.
print("Color:", animation_color)
# Uncomment below to see the color tuple printed to the serial console.
# print("Color:", animation_color)
elif isinstance(packet, ButtonPacket): # If the packet is a button packet...
# Check to see if it's BUTTON_1 (which is being sent by the slide switch)
if packet.button == ButtonPacket.BUTTON_1:
Expand Down