fix(tx15): wrong power led colors (#6792)
This commit is contained in:
@@ -110,6 +110,7 @@ void ledOff()
|
|||||||
void ledRed()
|
void ledRed()
|
||||||
{
|
{
|
||||||
#if defined(LED_RED_GPIO)
|
#if defined(LED_RED_GPIO)
|
||||||
|
ledOff();
|
||||||
GPIO_LED_GPIO_ON(LED_RED_GPIO);
|
GPIO_LED_GPIO_ON(LED_RED_GPIO);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -117,6 +118,7 @@ void ledRed()
|
|||||||
void ledGreen()
|
void ledGreen()
|
||||||
{
|
{
|
||||||
#if defined(LED_GREEN_GPIO)
|
#if defined(LED_GREEN_GPIO)
|
||||||
|
ledOff();
|
||||||
GPIO_LED_GPIO_ON(LED_GREEN_GPIO);
|
GPIO_LED_GPIO_ON(LED_GREEN_GPIO);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -124,6 +126,7 @@ void ledGreen()
|
|||||||
void ledBlue()
|
void ledBlue()
|
||||||
{
|
{
|
||||||
#if defined(LED_BLUE_GPIO)
|
#if defined(LED_BLUE_GPIO)
|
||||||
|
ledOff();
|
||||||
GPIO_LED_GPIO_ON(LED_BLUE_GPIO);
|
GPIO_LED_GPIO_ON(LED_BLUE_GPIO);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -401,8 +401,8 @@ TIM17: ROTARY_ENCODER_TIMER
|
|||||||
#define LED_STRIP_REFRESH_PERIOD 50 //ms
|
#define LED_STRIP_REFRESH_PERIOD 50 //ms
|
||||||
|
|
||||||
#define STATUS_LEDS
|
#define STATUS_LEDS
|
||||||
#define GPIO_LED_GPIO_ON gpio_clear
|
#define GPIO_LED_GPIO_ON gpio_set
|
||||||
#define GPIO_LED_GPIO_OFF gpio_set
|
#define GPIO_LED_GPIO_OFF gpio_clear
|
||||||
#define LED_RED_GPIO GPIO_PIN(GPIOI, 8) // PI.08
|
#define LED_RED_GPIO GPIO_PIN(GPIOI, 8) // PI.08
|
||||||
#define LED_GREEN_GPIO GPIO_PIN(GPIOI, 11) // PI.11
|
#define LED_GREEN_GPIO GPIO_PIN(GPIOI, 11) // PI.11
|
||||||
#define LED_BLUE_GPIO GPIO_PIN(GPIOI, 10) // PI.10
|
#define LED_BLUE_GPIO GPIO_PIN(GPIOI, 10) // PI.10
|
||||||
|
|||||||
Reference in New Issue
Block a user