Skip to content

add RGB and HSV to Technic Color Sensor #172

@tylerfowle

Description

@tylerfowle

Add the ability to get the RGB and/or HSV values from the Technic Color Sensor.
https://docs.pybricks.com/en/stable/pupdevices/colorsensor.html#pybricks.pupdevices.ColorSensor.hsv

Add the ability to customize the default detectable colors. Similar to what pybricks does. https://docs.pybricks.com/en/stable/pupdevices/colorsensor.html#pybricks.pupdevices.ColorSensor.detectable_colors

Additionally, it would be nice if these could be getter functions so you can query the color at a specific time, rather than the current Event system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions