fix(tx15): wrong power led colors (#6792)

This commit is contained in:
Stan Hung
2025-11-16 19:17:54 +10:00
committed by GitHub
parent 05ef9a5b9e
commit 4f4a7b48c6
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -110,6 +110,7 @@ void ledOff()
void ledRed()
{
#if defined(LED_RED_GPIO)
ledOff();
GPIO_LED_GPIO_ON(LED_RED_GPIO);
#endif
}
@@ -117,6 +118,7 @@ void ledRed()
void ledGreen()
{
#if defined(LED_GREEN_GPIO)
ledOff();
GPIO_LED_GPIO_ON(LED_GREEN_GPIO);
#endif
}
@@ -124,6 +126,7 @@ void ledGreen()
void ledBlue()
{
#if defined(LED_BLUE_GPIO)
ledOff();
GPIO_LED_GPIO_ON(LED_BLUE_GPIO);
#endif
}
+2 -2
View File
@@ -401,8 +401,8 @@ TIM17: ROTARY_ENCODER_TIMER
#define LED_STRIP_REFRESH_PERIOD 50 //ms
#define STATUS_LEDS
#define GPIO_LED_GPIO_ON gpio_clear
#define GPIO_LED_GPIO_OFF gpio_set
#define GPIO_LED_GPIO_ON gpio_set
#define GPIO_LED_GPIO_OFF gpio_clear
#define LED_RED_GPIO GPIO_PIN(GPIOI, 8) // PI.08
#define LED_GREEN_GPIO GPIO_PIN(GPIOI, 11) // PI.11
#define LED_BLUE_GPIO GPIO_PIN(GPIOI, 10) // PI.10