clean up
This commit is contained in:
1 parent
15054361e9
commit
af2a6d6aeb
2 files changed
+2
-24
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user