Add brightness to the LED mode.

This commit is contained in:
Benoît Allard
2024-09-25 23:20:48 +02:00
parent 7a0b67f3cb
commit 01d1856fcc
7 changed files with 52 additions and 26 deletions

View File

@@ -49,7 +49,7 @@ void led_driver_init() {
gpio_set_dir(LED_B_PIN, GPIO_OUT);
}
void led_driver_color(uint8_t color) {
void led_driver_color(uint8_t color, float brightness) {
gpio_put(LED_R_PIN, pixel[color][0]);
gpio_put(LED_G_PIN, pixel[color][1]);
gpio_put(LED_B_PIN, pixel[color][2]);