mirror of
https://github.com/polhenarejos/pico-keys-sdk.git
synced 2026-08-22 20:47:31 +01:00
Add default RGB order to RGB.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -106,7 +106,8 @@ static inline uint32_t urgb_ordered_u32(uint8_t first, uint8_t second, uint8_t t
|
||||
}
|
||||
|
||||
static inline uint32_t urgb_u32(uint8_t r, uint8_t g, uint8_t b) {
|
||||
switch (phy_data.led_order) {
|
||||
uint8_t order = phy_data.led_order_present ? phy_data.led_order : PHY_LED_ORDER_GRB;
|
||||
switch (order) {
|
||||
case PHY_LED_ORDER_RBG:
|
||||
return urgb_ordered_u32(r, b, g);
|
||||
case PHY_LED_ORDER_GRB:
|
||||
|
||||
Reference in New Issue
Block a user