Skip to content
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

Split setColor params? #8

Open
sandeepmistry opened this issue Dec 24, 2014 · 3 comments
Open

Split setColor params? #8

sandeepmistry opened this issue Dec 24, 2014 · 3 comments

Comments

@sandeepmistry
Copy link

What do you think about changing the setColor param from a buffer to separate r, g, b values?

I can submit a PR from: sandeepmistry@40a2610

@jacobrosenthal
Copy link
Owner

I dont know that I have an opinion. I guess you could better explain which
is r g and b?

I just released 2.0.0 so If we did it id hold it up till the next api
breaker, or put it along side the existing and depreciate the old method
over the next release or two?

On Tue, Dec 23, 2014 at 7:50 PM, Sandeep Mistry [email protected]
wrote:

What do you think about changing the setColor param from a buffer to
separate r, g, b values?

I can submit a PR from: sandeepmistry/ble-bean@40a2610
sandeepmistry@40a2610


Reply to this email directly or view it on GitHub
#8.

@sandeepmistry
Copy link
Author

It would reduce the overhead of creating a buffer to call the setColor API.

How about a setColorRGBor setRGBColor API, which in turn calls setColor with the r, g, b values converted to a buffer?

@jacobrosenthal
Copy link
Owner

sure

On Sun, Jan 4, 2015 at 8:26 AM, Sandeep Mistry [email protected]
wrote:

It would reduce the overhead of creating a buffer to call the setColor
API.

How about a setColorRGBor setRGBColor API, which in turn calls setColor
with the r, g, b values converted to a buffer?


Reply to this email directly or view it on GitHub
#8 (comment)
.

sandeepmistry added a commit to sandeepmistry/ble-bean that referenced this issue Jan 24, 2015
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

No branches or pull requests

2 participants