astro-pi / python-sense-hat

Source code for Sense HAT Python library
https://sense-hat.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
510 stars 255 forks source link

Added function to return only RGB values from the colour sensor #122

Closed snake48 closed 2 years ago

snake48 commented 2 years ago

The addition if this function makes it easier to directly pass the RGB values from the colour sensor into a function that takes an RGB values as an argument.

e.g sh.clear(sh.colour.rgb)

G3zz commented 2 years ago

Hi and thanks for your contribution! We think this is a good idea and will merge this in. We also want to add a doc item, create a separate function for brightness (as it's an easier to understand name) and bump the minor version number, so I will merge this PR into another branch in the project, add the functions, and then merge them to master 👍