Pico Led Controller 1.0.3
A project to control LEDs using Raspberry Pi Pico W
urgb.h
Go to the documentation of this file.
1 #ifndef _URGB_H
2 #define _URGB_H
3 
4 #include <stdio.h>
5 
6 #define URGB(r, g, b) ((uint32_t) (r) << 8) | ((uint32_t) (g) << 16) | (uint32_t) (b)
7 #define URGB_R(color) ((color >> 8) & 0xFF)
8 #define URGB_G(color) ((color >> 16) & 0xFF)
9 #define URGB_B(color) (color & 0xFF)
10 
11 #endif