Skip to content

Commit af2a6d6

Browse files
committed
clean up
1 parent 1505436 commit af2a6d6

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/adv_advanced/adv_advanced.ino

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
#define PIN_ADV 11
2424
#define ADV_TIMEOUT 60 // seconds
2525

26-
// Software Timer for blinking RED LED
27-
SoftwareTimer blinkTimer;
28-
2926
void setup()
3027
{
3128
// configure PIN_ADV as input with a pullup (pin is active low)
@@ -37,10 +34,6 @@ void setup()
3734
Serial.println("Bluefruit52 Advanced Advertising Example");
3835
Serial.println("----------------------------------------\n");
3936

40-
// Initialize blinkTimer for 1000 ms and start it
41-
blinkTimer.begin(1000, blink_timer_callback);
42-
blinkTimer.start();
43-
4437
Bluefruit.begin();
4538
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
4639
Bluefruit.setTxPower(4);
@@ -96,18 +89,3 @@ void adv_stop_callback(void)
9689
{
9790
Serial.println("Advertising time passed, advertising will now stop.");
9891
}
99-
100-
/**
101-
* Software Timer callback is invoked via a built-in FreeRTOS thread with
102-
* minimal stack size. Therefore it should be as simple as possible. If
103-
* a periodically heavy task is needed, please use Scheduler.startLoop() to
104-
* create a dedicated task for it.
105-
*
106-
* More information http://www.freertos.org/RTOS-software-timer.html
107-
*/
108-
void blink_timer_callback(TimerHandle_t xTimerID)
109-
{
110-
(void) xTimerID;
111-
digitalToggle(LED_RED);
112-
}
113-

variants/pca10056/variant.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ static const uint8_t AREF = PIN_AREF;
8787
#define PIN_SERIAL_RX (33)
8888
#define PIN_SERIAL_TX (34)
8989

90-
#define PIN_SERIAL2_RX (8)
91-
#define PIN_SERIAL2_TX (6)
90+
//#define PIN_SERIAL2_RX (8)
91+
//#define PIN_SERIAL2_TX (6)
9292

9393
/*
9494
* SPI Interfaces

0 commit comments

Comments
 (0)