We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2346dd commit cfe398eCopy full SHA for cfe398e
pio/ws2812/ws2812_parallel.c
@@ -29,16 +29,16 @@ static uint8_t *current_strip_out;
29
static bool current_strip_4color;
30
31
static inline void put_pixel(uint32_t pixel_grb) {
32
- *current_strip_out++ = pixel_grb & 0xffu;
33
- *current_strip_out++ = (pixel_grb >> 8u) & 0xffu;
34
*current_strip_out++ = (pixel_grb >> 16u) & 0xffu;
+ *current_strip_out++ = (pixel_grb >> 8u) & 0xffu;
+ *current_strip_out++ = pixel_grb & 0xffu;
35
if (current_strip_4color) {
36
- *current_strip_out++ = 0; // todo adjust?
+ *current_strip_out++ = 0; // todo adjust?
37
}
38
39
40
static inline uint32_t urgb_u32(uint8_t r, uint8_t g, uint8_t b) {
41
- return
+ return
42
((uint32_t) (r) << 8) |
43
((uint32_t) (g) << 16) |
44
(uint32_t) (b);
0 commit comments