diff --git a/libraries/Bluefruit52Lib/examples/Peripheral/adv_advanced/adv_advanced.ino b/libraries/Bluefruit52Lib/examples/Peripheral/adv_advanced/adv_advanced.ino index cb68042d..2902e81d 100644 --- a/libraries/Bluefruit52Lib/examples/Peripheral/adv_advanced/adv_advanced.ino +++ b/libraries/Bluefruit52Lib/examples/Peripheral/adv_advanced/adv_advanced.ino @@ -23,9 +23,6 @@ #define PIN_ADV 11 #define ADV_TIMEOUT 60 // seconds -// Software Timer for blinking RED LED -SoftwareTimer blinkTimer; - void setup() { // configure PIN_ADV as input with a pullup (pin is active low) @@ -37,10 +34,6 @@ void setup() Serial.println("Bluefruit52 Advanced Advertising Example"); Serial.println("----------------------------------------\n"); - // Initialize blinkTimer for 1000 ms and start it - blinkTimer.begin(1000, blink_timer_callback); - blinkTimer.start(); - Bluefruit.begin(); // Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4 Bluefruit.setTxPower(4); @@ -96,18 +89,3 @@ void adv_stop_callback(void) { Serial.println("Advertising time passed, advertising will now stop."); } - -/** - * Software Timer callback is invoked via a built-in FreeRTOS thread with - * minimal stack size. Therefore it should be as simple as possible. If - * a periodically heavy task is needed, please use Scheduler.startLoop() to - * create a dedicated task for it. - * - * More information http://www.freertos.org/RTOS-software-timer.html - */ -void blink_timer_callback(TimerHandle_t xTimerID) -{ - (void) xTimerID; - digitalToggle(LED_RED); -} - diff --git a/variants/pca10056/variant.h b/variants/pca10056/variant.h index 3191272d..c82ec334 100644 --- a/variants/pca10056/variant.h +++ b/variants/pca10056/variant.h @@ -87,8 +87,8 @@ static const uint8_t AREF = PIN_AREF; #define PIN_SERIAL_RX (33) #define PIN_SERIAL_TX (34) -#define PIN_SERIAL2_RX (8) -#define PIN_SERIAL2_TX (6) +//#define PIN_SERIAL2_RX (8) +//#define PIN_SERIAL2_TX (6) /* * SPI Interfaces