From 5476a883971119c6e3055682deb0e090e6954b65 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Mon, 6 Jan 2020 11:45:37 -0600 Subject: [PATCH 1/2] nano 33 ble: Use RGB LED, and (soft) power LED as primary. --- src/boards/arduino_nano_33_ble/board.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/boards/arduino_nano_33_ble/board.h b/src/boards/arduino_nano_33_ble/board.h index f62b7f3e..eeb10296 100644 --- a/src/boards/arduino_nano_33_ble/board.h +++ b/src/boards/arduino_nano_33_ble/board.h @@ -30,9 +30,13 @@ /*------------------------------------------------------------------*/ /* LED *------------------------------------------------------------------*/ -#define LEDS_NUMBER 1 // red LED -#define LED_PRIMARY_PIN _PINNUM(0, 24) -#define LED_STATE_ON 0 +#define LEDS_NUMBER 1 // "power" LED +#define LED_PRIMARY_PIN _PINNUM(1, 9) +#define LED_STATE_ON 1 + +#define LED_RGB_RED_PIN _PINNUM(0, 24) +#define LED_RGB_GREEN_PIN _PINNUM(0, 16) +#define LED_RGB_BLUE_PIN _PINNUM(0, 6) /*------------------------------------------------------------------*/ /* BUTTON From a9e8804c33d8405cb9def460a88fb0d71491c9d5 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Mon, 6 Jan 2020 11:51:37 -0600 Subject: [PATCH 2/2] nano33: Fix comments --- src/boards/arduino_nano_33_ble/board.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/boards/arduino_nano_33_ble/board.h b/src/boards/arduino_nano_33_ble/board.h index eeb10296..2163cb32 100644 --- a/src/boards/arduino_nano_33_ble/board.h +++ b/src/boards/arduino_nano_33_ble/board.h @@ -33,6 +33,7 @@ #define LEDS_NUMBER 1 // "power" LED #define LED_PRIMARY_PIN _PINNUM(1, 9) #define LED_STATE_ON 1 +// P0.13 is the "D13" LED, active high, if we want to use it too. #define LED_RGB_RED_PIN _PINNUM(0, 24) #define LED_RGB_GREEN_PIN _PINNUM(0, 16) @@ -41,7 +42,7 @@ /*------------------------------------------------------------------*/ /* BUTTON *------------------------------------------------------------------*/ -#define BUTTONS_NUMBER 2 +#define BUTTONS_NUMBER 2 // None populated... #define BUTTON_1 _PINNUM(1, 11) // D2 switch #define BUTTON_2 _PINNUM(1, 12) // D3 switch #define BUTTON_PULL NRF_GPIO_PIN_PULLUP @@ -72,4 +73,4 @@ #define UF2_BOARD_ID "nRF52840-Nano-33" #define UF2_INDEX_URL "https://www.arduino.cc/" -#endif // _ITSY_NRF52840_H +#endif // _ARDUINOBLE33_NRF52840_H