Skip to content

Commit d4aaea8

Browse files
authored
Make color prints optional
1 parent dd1758f commit d4aaea8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Circuit_Playground_Bluefruit_NeoPixel_Controller/NeoPixel_Animator.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@
8383
if isinstance(packet, ColorPacket): # If the packet is color packet...
8484
if mode == 0: # And mode is 0...
8585
animations.color = packet.color # Update the animation to the color.
86-
print("Color:", packet.color)
86+
# Uncomment below to see the color tuple printed to the serial console.
87+
# print("Color:", packet.color)
8788
animation_color = packet.color # Keep track of the current color...
8889
elif mode == 1: # Because if mode is 1...
8990
animations.color = animation_color # Freeze the animation color.
90-
print("Color:", animation_color)
91+
# Uncomment below to see the color tuple printed to the serial console.
92+
# print("Color:", animation_color)
9193
elif isinstance(packet, ButtonPacket): # If the packet is a button packet...
9294
# Check to see if it's BUTTON_1 (which is being sent by the slide switch)
9395
if packet.button == ButtonPacket.BUTTON_1:

0 commit comments

Comments
 (0)