Skip to content

[Bug] LightArray.on() arg mismatch #273

Closed

Description

@laurensvalk

Describe the bug
The implementation requires

ultrasonic_sensor.lights.on(100, 0, 50, 0)

But the documentation says it should be a tuple.

image

Need to review with rest of API to see which is most consistent, and then fix either implementation or documentation.

Also consider allowing no argument?

Expected behavior
Implementation and documentation to match.

Activity

  1. added
    topic: sensors
    on Mar 17, 2021
  2. laurensvalk commented on Apr 9, 2021

    @laurensvalk
    MemberAuthor

    Implementation fixed via pybricks/pybricks-micropython@28b5413, but we have to update snippets and projects too.

  3. added theissue type on Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: sensors

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions