From 11191fbad3b0848e14d390fe33791835c752784a Mon Sep 17 00:00:00 2001 From: DefenderOfHyrule <11156197+DefenderOfHyrule@users.noreply.github.com> Date: Sun, 7 Jul 2024 23:58:19 +0200 Subject: [PATCH] publish --- misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc.c b/misc.c index 1af92ff..f2bbfc8 100644 --- a/misc.c +++ b/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);