diff --git a/components/retro-go/rg_system.c b/components/retro-go/rg_system.c index 5982c5a06..967199f24 100644 --- a/components/retro-go/rg_system.c +++ b/components/retro-go/rg_system.c @@ -184,6 +184,10 @@ static void update_indicators(void) else if (visibleIndicators) ledColor = C_BLUE; +#ifdef RG_GPIO_LED_ACTIVE_LOW + ledColor = !ledColor; +#endif + #if defined(ESP_PLATFORM) && defined(RG_GPIO_LED) gpio_set_level(RG_GPIO_LED, ledColor != 0); #endif diff --git a/components/retro-go/targets/fri3d-2024/config.h b/components/retro-go/targets/fri3d-2024/config.h index 760ebefa4..b20989125 100644 --- a/components/retro-go/targets/fri3d-2024/config.h +++ b/components/retro-go/targets/fri3d-2024/config.h @@ -86,6 +86,7 @@ // Status LED #define RG_GPIO_LED GPIO_NUM_21 +#define RG_GPIO_LED_ACTIVE_LOW // setting RG_GPIO_LED low turns on the LED, while high turns it off // Battery #define RG_BATTERY_DRIVER 1