|
42 | 42 | /*------------------------------------------------------------------*/
|
43 | 43 | /* LED
|
44 | 44 | *------------------------------------------------------------------*/
|
45 |
| -// TODO(gpshead): only an rgb led, not a separate primary one. 0? |
46 |
| -#define LEDS_NUMBER 1 |
47 |
| -#define LED_PRIMARY_PIN _PINNUM(0, 23) |
| 45 | +#define LEDS_NUMBER 2 // TODO(gpshead): support 0. |
| 46 | +#define LED_PRIMARY_PIN _PINNUM(0, 23) // Red |
| 47 | +#define LED_SECONDARY_PIN _PINNUM(0, 24) // Blue |
48 | 48 | #define LED_STATE_ON 0
|
49 | 49 |
|
50 |
| -#define LED_RGB_RED_PIN _PINNUM(0, 23) |
51 |
| -#define LED_RGB_GREEN_PIN _PINNUM(0, 22) |
52 |
| -#define LED_RGB_BLUE_PIN _PINNUM(0, 24) |
53 |
| -#define BOARD_RGB_BRIGHTNESS 0x202020 |
| 50 | +//#define LED_RGB_RED_PIN _PINNUM(0, 23) |
| 51 | +//#define LED_RGB_GREEN_PIN _PINNUM(0, 22) |
| 52 | +//#define LED_RGB_BLUE_PIN _PINNUM(0, 24) |
| 53 | +#define BOARD_RGB_BRIGHTNESS 0x404040 |
54 | 54 | /*------------------------------------------------------------------*/
|
55 | 55 | /* BUTTON
|
56 | 56 | *------------------------------------------------------------------*/
|
|
60 | 60 | #define BUTTON_2 _PINNUM(0, 19) // no connection
|
61 | 61 | #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
|
62 | 62 |
|
63 |
| -/*------------------------------------------------------------------*/ |
64 |
| -/* UART |
65 |
| - * TODO(gpshead): Does this even make sense to define? |
66 |
| - * No serial pins. USB ACM/CDC only. |
67 |
| - *------------------------------------------------------------------*/ |
68 |
| -#define RX_PIN_NUMBER 8 |
69 |
| -#define TX_PIN_NUMBER 6 |
70 |
| -#define CTS_PIN_NUMBER 0 |
71 |
| -#define RTS_PIN_NUMBER 0 |
72 |
| -#define HWFC false |
73 |
| - |
74 | 63 | // Used as model string in OTA mode
|
75 | 64 | #define DIS_MANUFACTURER "MakerDiary"
|
76 | 65 | #define DIS_MODEL "nRF52840 Micro Dev Kit USB Dongle"
|
|
0 commit comments