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

Added a method of read the colour of any pixel #10

Merged
merged 3 commits into from
Jan 22, 2023
Merged

Conversation

Footleg
Copy link
Contributor

@Footleg Footleg commented Nov 8, 2022

I needed to read pixel values for an application, so I added this method to get back the RGB values of any LED. I tried to write it to also support RGBW mode, but I have not been able to test if this works as I do not have that type of LED to hand.

Added method to read back the RGB colour of any pixel
I realised I had lost changes made to the library I forked from, so restored these and added rgbw support to my get pixel colour method (untested as I don't have a suitable LED device to hand).
@blaz-r blaz-r self-requested a review November 8, 2022 20:56
neopixel.py Outdated Show resolved Hide resolved
neopixel.py Outdated Show resolved Hide resolved
neopixel.py Outdated Show resolved Hide resolved
neopixel.py Show resolved Hide resolved
Copy link
Owner

@blaz-r blaz-r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this contribution :). There are some things that need to be addressed. I commented all of them in this review and gave some suggestions.
I didn't test it on Pico as I don't currently have access to it, but once this is all resolved I'll test that and merge if everything works.

@blaz-r blaz-r self-assigned this Nov 11, 2022
@blaz-r blaz-r added enhancement New feature or request documentation Improvements or additions to documentation labels Nov 11, 2022
@Footleg
Copy link
Contributor Author

Footleg commented Dec 28, 2022

Updated with suggested changes, and also now tested against some real RGBW LEDs.

@blaz-r
Copy link
Owner

blaz-r commented Jan 22, 2023

Thanks for this addition and all corrections. I'll now merge and write documentation for this function in wiki

Copy link
Owner

@blaz-r blaz-r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good with these changes.

@blaz-r blaz-r merged commit 8012e3b into blaz-r:main Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants