Skip to content

Commit

Permalink
Merge pull request #72 from dbstf/master
Browse files Browse the repository at this point in the history
PR to fix #71 (XIAO SAMD21: Add TX/RX LED On/Off on Arduino IDE menu)
  • Loading branch information
Lesords authored Jan 15, 2025
2 parents 050e6bb + 98061c2 commit d900ef7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 6 additions & 4 deletions variants/XIAO_m0/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d900ef7

Please sign in to comment.