Skip to content

ws2812 fixes#610

Open
balika011 wants to merge 3 commits into
raspberrypi:masterfrom
balika011:master
Open

ws2812 fixes#610
balika011 wants to merge 3 commits into
raspberrypi:masterfrom
balika011:master

Conversation

@balika011

Copy link
Copy Markdown

No description provided.

`pixel_grb << 8u` in `put_pixel` would shift out the `w` and set white to green, green to to red, red to blue and blue to 0.
Comment thread pio/ws2812/ws2812.c
hard_assert(success);

#if IS_800KHz
ws2812_program_init(pio, sm, offset, WS2812_PIN, 800000, IS_RGBW);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Perhaps it makes more sense to add e.g. #define WS2812_FREQUENCY 800000 and then pass that to ws2812_program_init, rather than adding a #if IS_800KHz section?

Comment thread pio/ws2812/ws2812.c
*
* If it is RGBW, you need to set IS_RGBW to true and provide 4 bytes per
* pixel (Red, Green, Blue, White) and use urgbw_u32().
* pixel (Red, Green, Blue, White) and use urgb_u32() or urgbw_u32().

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I can't tell why you've effectively removed support for urgbw_u32() ?

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