Replies: 1 comment 8 replies
-
|
Your animation works for me: from pybricks.hubs import TechnicHub
from pybricks.parameters import Color
from pybricks.tools import wait
hub = TechnicHub()
hub.light.animate([Color.RED, Color.ORANGE, Color.YELLOW, Color.GREEN, Color.CYAN, Color.BLUE, Color.VIOLET, Color.MAGENTA], interval=100)
wait(10*1000)Can you share your whole script instead of just that portion? Could there be another part of your code that's setting it to red? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am discovering pybricks with my LEGO buggy + a PU remote and it is working well, it is so much better than on a smartphone, thanks a lot for this!
Just a small thing that I cannot manage to do with the code: I would like to have the hub's light animated while the right side red button is pressed, but basically only the first color stays active (red, in this case):
I have also tried with the while(Button.RIGHT in pressed) but it does not work either... What could be a solution?
Thanks all!
Beta Was this translation helpful? Give feedback.
All reactions