update example to use new define, fix build error
This commit is contained in:
1 parent
061e85b04b
commit
d340ce999e
2 files changed
+5
-4
No files matched your search
@@ -27,7 +27,7 @@
|
||||
#include <bluefruit.h>
|
||||
|
||||
/*------------- OLED and Buttons -------------*/
|
||||
#if defined ARDUINO_NRF52_FEATHER
|
||||
#if defined ARDUINO_NRF52832_FEATHER
|
||||
// Feather nRF52832
|
||||
#define BUTTON_A 31
|
||||
#define BUTTON_B 30
|
||||
@@ -456,4 +456,5 @@ uint32_t readPressedButtons(void)
|
||||
lastDebounced = debounced;
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -95,7 +95,7 @@ BLEUuid uuid = BLEUuid(CUSTOM_UUID);
|
||||
#include <Adafruit_ILI9341.h>
|
||||
|
||||
/* Pin setup for the TFT display over SPI */
|
||||
#ifdef ARDUINO_NRF52_FEATHER
|
||||
#ifdef ARDUINO_NRF52832_FEATHER
|
||||
#define TFT_DC 11
|
||||
#define TFT_CS 31
|
||||
#define STMPE_CS 30
|
||||
@@ -114,7 +114,7 @@ BLEUuid uuid = BLEUuid(CUSTOM_UUID);
|
||||
#include <Adafruit_SSD1306.h>
|
||||
|
||||
/* Pin setup for the OLED display */
|
||||
#ifdef ARDUINO_NRF52_FEATHER
|
||||
#ifdef ARDUINO_NRF52832_FEATHER
|
||||
#define BUTTON_A 31
|
||||
#define BUTTON_B 30
|
||||
#define BUTTON_C 27
|
||||
|
||||
Reference in new issue
Block a user