Skip to content

Commit 8507332

Browse files
committed
samples: basic: button: Disable led on bg27 boards
Button 0 and LED 0 share a GPIO pin on bg27 boards. Remove the `led0` alias in a board overlay to make the button sample work out of the box. Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
1 parent 7023439 commit 8507332

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

boards/silabs/radio_boards/xg27/doc/bg27_rb4110b.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ Serial Port
4646
The EFR32BG27 SoC has two USARTs and one EUSART.
4747
USART1 is connected to the board controller and is used for the console.
4848

49+
Buttons and LEDs
50+
================
51+
52+
This board has two buttons and two LEDs that share GPIO pins. If an application wants to use both
53+
a button and a LED with the same number (e.g. button 0 and LED 0), it needs to time multiplex the
54+
two functions.
55+
4956
Programming and Debugging
5057
*************************
5158

boards/silabs/radio_boards/xg27/doc/bg27_rb4111b.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ Serial Port
4747
The EFR32BG27 SoC has two USARTs and one EUSART.
4848
USART1 is connected to the board controller and is used for the console.
4949

50+
Buttons and LEDs
51+
================
52+
53+
This board has two buttons and two LEDs that share GPIO pins. If an application wants to use both
54+
a button and a LED with the same number (e.g. button 0 and LED 0), it needs to time multiplex the
55+
two functions.
56+
5057
Programming and Debugging
5158
*************************
5259

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2025 Silicon Laboratories Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
/* led0 interferes with sw0 since it uses the same pin */
10+
/delete-property/ led0;
11+
};
12+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2025 Silicon Laboratories Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
/* led0 interferes with sw0 since it uses the same pin */
10+
/delete-property/ led0;
11+
};
12+
};

0 commit comments

Comments
 (0)