-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Bug] The "light.off()" command does not work with MoveHub #501
Comments
Reduced the program to only use the light device. The program I used: # Source: Z:\home\bert\py\pybricks\issue\issue_#501_try2.py
# works on ('technichub', '3.1.0b1', 'v3.1.0b1-8-ge82dd6a2 on 2021-09-28')
# and on ('technichub', '3.1.0b1', 'v3.1.0b1 on 2021-09-21')
# does NOT work on ('movehub', '3.1.0b1', 'v3.1.0b1-14-g7ca4742d on 2021-09-29')
# and NOT on ('movehub', '3.1.0b1', 'v3.1.0b1 on 2021-09-21')
# WORKS on ('movehub', '3.0.0', '8845360 on 2021-06-08')
# plugged in the leds while hub was OFF.
from pybricks.pupdevices import Light
from pybricks.parameters import Port
from pybricks.tools import wait
from pybricks import version
print(version)
# Initialize the light.
light = Light(Port.C)
# Blink the light forever.
while True:
# Turn the light on at 100% brightness.
light.on(10)
wait(500)
# Turn the light off.
light.off()
wait(500) There was a moment that I tought a beta version was working, but it never happened again, so it must be me, |
Tried to find firmware files from continuous integration builds to find something between On |
Used |
In fa08cb7, `case PBIO_PORT_ID_C:` was accidentally deleted causing brake on port C to not work. Fixes: pybricks/support#501
Confirmed fixed at C.I. build Build #1321 (obviously 😄 )
Thanks David |
I am super-excited with the PyBricks, so cool - THANKS !!!
Describe the bug
I have created the following code with "light.off()" command. It works perfectly with the TechnicHub, but the same code does not work with the MoveHub. Switching the light on and other functions work perfectly.
To reproduce
Steps to reproduce the behavior:
If I do the same with LEGO Powered UP 88012 TECHNIC Hub, the light works perfectly, so it is probably a problem specific to the MoveHub.
The code:
The text was updated successfully, but these errors were encountered: