feat(color): show switch colors for customisable switches on diagnostic page (#6124)

This commit is contained in:
philmoz
2025-04-28 21:37:07 +10:00
committed by GitHub
parent 522474cf62
commit 5a7a50f2cc
7 changed files with 82 additions and 24 deletions
+5
View File
@@ -57,3 +57,8 @@ uint32_t rgbGetLedColor(uint8_t led)
uint8_t* pixel = &_led_colors[led * WS2812_BYTES_PER_LED];
return (pixel[1] << 16) + (pixel[0] << 8) + pixel[2];
}
uint32_t fsGetLedRGB(uint8_t index)
{
return rgbGetLedColor(index);
}