Skip to content

docs/esp8266/tutorial/neopixel.rst: Updated docs to reflect api changes. #3336

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

Closed
wants to merge 4 commits into from

Conversation

gmorell
Copy link
Contributor

@gmorell gmorell commented Sep 27, 2017

Pull #2536 added a bpp parameter for selecting the number of LEDs per Pixel.

Copy link
Contributor

@pfalcon pfalcon left a comment

Choose a reason for hiding this comment

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

Please follow commit message conventions in https://github.com/micropython/micropython/blob/master/CODECONVENTIONS.md . Please wrap the lines you add to the same length as the surrounding lines.

@gmorell gmorell changed the title docs/esp8266/tutorial: Updating neopixel.rst to reflect pull #2536. docs/esp8266/tutorial/neopixel.rst: Updated docs to reflect api changes. Oct 2, 2017

>>> import machine, neopixel
>>> np = neopixel.NeoPixel(machine.Pin(4), 8, bpp=4)

Copy link
Member

Choose a reason for hiding this comment

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

You might want to mention that when the NeoPixel object is in 4-bpp mode then all the colour tuples (eg in the demos below) need to be 4-tuples, as opposed to 3-tuples.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added an example as well and reordered the sections. If it doesn't make sense I'm open to further adjustments.

Added example of using 4-tuples and did some slight reordering.
@dpgeorge
Copy link
Member

dpgeorge commented Oct 3, 2017

Thanks for updating. Merged in 9e0cdb2

@dpgeorge dpgeorge closed this Oct 3, 2017
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.

3 participants