Use RGB red and blue as primary and secondary.

The code currently expects a primary LED no matter what so the
RGB led support combined with that clobbers the nice pulsing primary.
This commit is contained in:
Gregory P. Smith 2019-03-03 21:12:30 -08:00
parent 05726e2575
commit 01492634b6
1 changed files with 7 additions and 18 deletions

View File

@ -42,15 +42,15 @@
/*------------------------------------------------------------------*/ /*------------------------------------------------------------------*/
/* LED /* LED
*------------------------------------------------------------------*/ *------------------------------------------------------------------*/
// TODO(gpshead): only an rgb led, not a separate primary one. 0? #define LEDS_NUMBER 2 // TODO(gpshead): support 0.
#define LEDS_NUMBER 1 #define LED_PRIMARY_PIN _PINNUM(0, 23) // Red
#define LED_PRIMARY_PIN _PINNUM(0, 23) #define LED_SECONDARY_PIN _PINNUM(0, 24) // Blue
#define LED_STATE_ON 0 #define LED_STATE_ON 0
#define LED_RGB_RED_PIN _PINNUM(0, 23) //#define LED_RGB_RED_PIN _PINNUM(0, 23)
#define LED_RGB_GREEN_PIN _PINNUM(0, 22) //#define LED_RGB_GREEN_PIN _PINNUM(0, 22)
#define LED_RGB_BLUE_PIN _PINNUM(0, 24) //#define LED_RGB_BLUE_PIN _PINNUM(0, 24)
#define BOARD_RGB_BRIGHTNESS 0x202020 #define BOARD_RGB_BRIGHTNESS 0x404040
/*------------------------------------------------------------------*/ /*------------------------------------------------------------------*/
/* BUTTON /* BUTTON
*------------------------------------------------------------------*/ *------------------------------------------------------------------*/
@ -60,17 +60,6 @@
#define BUTTON_2 _PINNUM(0, 19) // no connection #define BUTTON_2 _PINNUM(0, 19) // no connection
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/
/* UART
* TODO(gpshead): Does this even make sense to define?
* No serial pins. USB ACM/CDC only.
*------------------------------------------------------------------*/
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode // Used as model string in OTA mode
#define DIS_MANUFACTURER "MakerDiary" #define DIS_MANUFACTURER "MakerDiary"
#define DIS_MODEL "nRF52840 Micro Dev Kit USB Dongle" #define DIS_MODEL "nRF52840 Micro Dev Kit USB Dongle"