From a42ebc267b89ddb1d498663988af1e15e56da141 Mon Sep 17 00:00:00 2001 From: Martyn Boogaarts Date: Sat, 24 Apr 2021 21:36:10 +0200 Subject: [PATCH] examples/pup/hub_shared: Update light animation examples. See https://github.com/pybricks/support/issues/253 * Update light_animate.py corrected syntax * Update light_animate.py corrected syntax * Update light_animate.py corrected syntax * Update light_animate.py corrected syntax --- examples/pup/hub_cityhub/light_animate.py | 2 +- examples/pup/hub_primehub/light_animate.py | 2 +- examples/pup/hub_shared/light_animate.py | 2 +- examples/pup/hub_technichub/light_animate.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/pup/hub_cityhub/light_animate.py b/examples/pup/hub_cityhub/light_animate.py index db71543..1a3303f 100644 --- a/examples/pup/hub_cityhub/light_animate.py +++ b/examples/pup/hub_cityhub/light_animate.py @@ -7,7 +7,7 @@ from math import sin, pi hub = CityHub() # Make an animation with multiple colors. -hub.light.animate([Color.RED, Color.GREEN, None], interval=500) +hub.light.animate([Color.RED, Color.GREEN, Color.NONE], interval=500) wait(10000) diff --git a/examples/pup/hub_primehub/light_animate.py b/examples/pup/hub_primehub/light_animate.py index 1080154..eb31667 100644 --- a/examples/pup/hub_primehub/light_animate.py +++ b/examples/pup/hub_primehub/light_animate.py @@ -7,7 +7,7 @@ from math import sin, pi hub = PrimeHub() # Make an animation with multiple colors. -hub.light.animate([Color.RED, Color.GREEN, None], interval=500) +hub.light.animate([Color.RED, Color.GREEN, Color.NONE], interval=500) wait(10000) diff --git a/examples/pup/hub_shared/light_animate.py b/examples/pup/hub_shared/light_animate.py index f2fff59..eb765ea 100644 --- a/examples/pup/hub_shared/light_animate.py +++ b/examples/pup/hub_shared/light_animate.py @@ -8,7 +8,7 @@ from math import sin, pi hub = ExampleHub() # Make an animation with multiple colors. -hub.light.animate([Color.RED, Color.GREEN, None], interval=500) +hub.light.animate([Color.RED, Color.GREEN, Color.NONE], interval=500) wait(10000) diff --git a/examples/pup/hub_technichub/light_animate.py b/examples/pup/hub_technichub/light_animate.py index 06f68ab..6cec097 100644 --- a/examples/pup/hub_technichub/light_animate.py +++ b/examples/pup/hub_technichub/light_animate.py @@ -7,7 +7,7 @@ from math import sin, pi hub = TechnicHub() # Make an animation with multiple colors. -hub.light.animate([Color.RED, Color.GREEN, None], interval=500) +hub.light.animate([Color.RED, Color.GREEN, Color.NONE], interval=500) wait(10000)