Skip to content

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

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

Merged
merged 1 commit into from
Oct 4, 2016

Conversation

ddemidov
Copy link
Member

@ddemidov ddemidov commented Oct 4, 2016

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.

@WasabiFan WasabiFan merged commit f6a8eb9 into develop Oct 4, 2016
ddemidov added a commit to ev3dev/ev3dev-lang-python that referenced this pull request Oct 4, 2016
ddemidov added a commit to ddemidov/ev3dev-lang-cpp that referenced this pull request Oct 4, 2016
@ddemidov ddemidov deleted the color-sensor-rgb-tuple branch October 4, 2016 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants