ev3dev / ev3dev-lang

(deprecated) language bindings for ev3dev sensors, motors, LEDs, etc.
GNU General Public License v2.0
56 stars 39 forks source link

Return raw color values in a tuple from ColorSensor.raw() #171

Closed ddemidov closed 7 years ago

ddemidov commented 7 years ago

This is based on #169.

Makes possible to write

r,g,b = cs.raw()

instead of

r,g,b = cs.red(), cs.green(), cs.blue()

I am leaving red(), green(), and blue() in place, but we could also think about removing those completely.