From 2713069643078d5dc26e969177dd8d3d9d754ba7 Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 27 Mar 2019 13:03:23 +0700 Subject: [PATCH] fix #59 incorrect button mapping for feather nrf52840 --- Makefile | 2 ++ src/boards/feather_nrf52840_express.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ddcc508..6dbaf98 100644 --- a/Makefile +++ b/Makefile @@ -251,6 +251,8 @@ CFLAGS += -ffunction-sections -fdata-sections -fno-strict-aliasing CFLAGS += -fno-builtin --short-enums -fstack-usage # Defined Symbol (MACROS) + +# TODO use GIT_VERSION (numberic format) CFLAGS += -DMK_BOOTLOADER_VERSION=0x0$(SD_VER1)0$(SD_VER2)0$(SD_VER3)UL CFLAGS += -D__HEAP_SIZE=0 diff --git a/src/boards/feather_nrf52840_express.h b/src/boards/feather_nrf52840_express.h index 3206046..4d6c998 100644 --- a/src/boards/feather_nrf52840_express.h +++ b/src/boards/feather_nrf52840_express.h @@ -53,8 +53,8 @@ /* BUTTON *------------------------------------------------------------------*/ #define BUTTONS_NUMBER 2 -#define BUTTON_1 _PINNUM(0, 15) -#define BUTTON_2 _PINNUM(0, 19) +#define BUTTON_1 _PINNUM(1, 02) +#define BUTTON_2 _PINNUM(0, 10) #define BUTTON_PULL NRF_GPIO_PIN_PULLUP /*------------------------------------------------------------------*/