forked from Mirrors/usk
publish
This commit is contained in:
parent
3a7c9e634e
commit
11191fbad3
1 changed files with 2 additions and 2 deletions
4
misc.c
4
misc.c
|
|
@ -117,8 +117,8 @@ void put_pixel(uint32_t pixel_grb)
|
|||
sleep_us(200);
|
||||
}
|
||||
|
||||
uint8_t green = (pixel_grb >> 16) & 0xFF;
|
||||
uint8_t red = (pixel_grb >> 8) & 0xFF;
|
||||
uint8_t green = (pixel_grb >> 8) & 0xFF;
|
||||
uint8_t red = (pixel_grb >> 16) & 0xFF;
|
||||
uint8_t blue = pixel_grb & 0xFF;
|
||||
|
||||
pio_sm_put_blocking(pio0, 3, (green << 16) | (red << 8) | blue);
|
||||
|
|
|
|||
Loading…
Reference in a new issue