Skip to content

Commit e1c34c6

Browse files
committed
Use BUTTON1 by default
As per the latest guidelines on Mbed OS standard pin names, all buttons are numbered, starting at `BUTTON1`. `USER_BUTTON` is not available on DISCO_L475VG_IOT01A anymore.
1 parent d9b9462 commit e1c34c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mbed_app.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"config": {
33
"demo-button": {
44
"macro_name": "DEMO_BUTTON",
5-
"required": true
5+
"required": true,
6+
"value": "BUTTON1"
67
},
78
"demo-button-active-low": {
89
"help": "true if the button state is low when pressed, high when released",
@@ -18,7 +19,6 @@
1819
"mbed-trace.enable": true
1920
},
2021
"NRF52840_DK": {
21-
"demo-button": "BUTTON1",
2222
"demo-button-active-low": true,
2323
"target.mbed_app_start": "0x21000",
2424
"target.mbed_app_size": "0xBE000",
@@ -31,7 +31,6 @@
3131
"qspif.QSPI_MIN_PROG_SIZE": 4
3232
},
3333
"EP_AGORA": {
34-
"demo-button": "BUTTON1",
3534
"demo-button-active-low": true,
3635
"target.mbed_app_start": "0x21000",
3736
"target.mbed_app_size": "0xBE000",
@@ -44,7 +43,6 @@
4443
"qspif.QSPI_MIN_PROG_SIZE": 4
4544
},
4645
"DISCO_L475VG_IOT01A": {
47-
"demo-button": "USER_BUTTON",
4846
"demo-button-active-low": true,
4947
"target.mbed_app_start": "0x8021000",
5048
"target.mbed_app_size": "0xBE000",

0 commit comments

Comments
 (0)