diff --git a/boards.txt b/boards.txt index 7deb90a20..d3267d348 100644 --- a/boards.txt +++ b/boards.txt @@ -169,9 +169,12 @@ seeed_XIAO_m0.menu.sercom4.include=USART seeed_XIAO_m0.menu.sercom4.include.sercom4_flag= seeed_XIAO_m0.menu.sercom4.exclude=None seeed_XIAO_m0.menu.sercom4.exclude.sercom4_flag=-DNO_USART_INTERFACE +seeed_XIAO_m0.menu.txrxled.on=On +seeed_XIAO_m0.menu.txrxled.off=Off +seeed_XIAO_m0.menu.txrxled.on.build.flags.txrxled=-DTXRXLED_ENABLE -# Seeed XIAO M0 (SAMD21) +# Seeed Wio Lite MG126 (SAMD21) # ------------------------------ Wio_Lite_MG126.name=Seeeduino Wio lite MG126 Wio_Lite_MG126.vid.0=0x2886 diff --git a/variants/XIAO_m0/variant.h b/variants/XIAO_m0/variant.h index 7f369d43a..ffc9cf634 100644 --- a/variants/XIAO_m0/variant.h +++ b/variants/XIAO_m0/variant.h @@ -69,10 +69,12 @@ #define LED_BUILTIN PIN_LED -#define PIN_LED_RXL (12u) -#define PIN_LED_TXL (11u) -#define PIN_LED2 PIN_LED_RXL -#define PIN_LED3 PIN_LED_TXL +#define PIN_LED2 (12u) +#define PIN_LED3 (11u) +#if defined(TXRXLED_ENABLE) +#define PIN_LED_RXL PIN_LED2 +#define PIN_LED_TXL PIN_LED3 +#endif /* * Analog pins