Skip to content
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] PoweredUp Light (item #88005) uncontrollable on Move Hub (item #88006) #913

Closed
StuffAndyMakes opened this issue Jan 10, 2023 · 7 comments
Assignees
Labels
bug Something isn't working hub: movehub Issues related to the LEGO BOOST Move hub software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime)

Comments

@StuffAndyMakes
Copy link

StuffAndyMakes commented Jan 10, 2023

Describe the bug
Running "Making the light blink" example from the Light object documentation connected to Port.C on a Move Hub results in the motor on Port.A starting, stopping, starting, stopping, etc. ("blinking").

To reproduce
Run the following example code (modified to use Port.C for the LED module):

from pybricks.pupdevices import Light
from pybricks.parameters import Port
from pybricks.tools import wait

# Initialize the light.
light = Light(Port.C)

# Blink the light forever.
while True:
    # Turn the light on at 100% brightness.
    light.on(100)
    wait(500)

    # Turn the light off.
    light.off()
    wait(500)

Expected behavior
The expected behavior is for the LEDs on the 88005 PoweredUp Light to blink on and off.

Screenshots
https://user-images.githubusercontent.com/2899323/211683271-866a9e6f-c2f6-445b-8875-33f472988464.mov

@StuffAndyMakes StuffAndyMakes added the triage Issues that have not been triaged yet label Jan 10, 2023
@dlech dlech added bug Something isn't working hub: movehub Issues related to the LEGO BOOST Move hub software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime) and removed triage Issues that have not been triaged yet labels Jan 11, 2023
@dlech
Copy link
Member

dlech commented Jan 11, 2023

Firmware version?

@dlech
Copy link
Member

dlech commented Jan 11, 2023

I'm able to reproduce with v3.2.2.

@dlech
Copy link
Member

dlech commented Jan 11, 2023

Thanks for the report. Who knows how long it has been like that. I guess not many people are using the light on the move hub. 😄

You can grab a firmware with the fix from https://github.com/pybricks/pybricks-micropython/suites/10297481669/artifacts/506150765 if you don't want to wait for the next release.

@dlech dlech self-assigned this Jan 11, 2023
@JobadSayas
Copy link

how do you install that firmware? or what do you do with that zip file?

@dlech
Copy link
Member

dlech commented Feb 17, 2023

how do you install that firmware? or what do you do with that zip file?

Please see https://pybricks.com/install/technic-boost-city/#installing-the-latest-build-advanced

@StuffAndyMakes
Copy link
Author

Thanks for the quick turnaround! Love it!

dlech added a commit to pybricks/pybricks-micropython that referenced this issue Feb 17, 2023
… offset

This was using the I/O port offset instead of using the motor port
offset. Since it controls the motors, it needs to use the motor port
numbering.

This was only noticed on move hub since it is the only hub where there
are motor ports without I/O ports.

Fixes: pybricks/support#913
@JobadSayas
Copy link

it works awesome! thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hub: movehub Issues related to the LEGO BOOST Move hub software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime)
Projects
None yet
Development

No branches or pull requests

3 participants