From ceeec80e331e048cdea76fa14c1c8a26f446ea8e Mon Sep 17 00:00:00 2001 From: microbuilder Date: Fri, 10 Feb 2017 12:52:46 +0100 Subject: [PATCH] Updated blinky pattern --- libraries/Bluefruit52Lib/examples/bleuart/bleuart.ino | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/Bluefruit52Lib/examples/bleuart/bleuart.ino b/libraries/Bluefruit52Lib/examples/bleuart/bleuart.ino index 22a05285..72bfb708 100644 --- a/libraries/Bluefruit52Lib/examples/bleuart/bleuart.ino +++ b/libraries/Bluefruit52Lib/examples/bleuart/bleuart.ino @@ -18,6 +18,7 @@ BLEUart bleuart; BLEBas blebas; #define STATUS_LED (17) +#define BLINKY_MS (2000) int blinkyms; @@ -33,7 +34,7 @@ void setup() // Setup the BLE LED to be enabled on CONNECT // Note: This is actually the default behaviour, but provided - // here in case you want to control this manually via PIN 19) + // here in case you want to control this manually via PIN 19 Bluefruit.enableLedConn(true); Bluefruit.begin(); @@ -77,11 +78,11 @@ void setupAdv(void) void loop() { // Blinky! - if (blinkyms+500 < millis()) { + if (blinkyms+BLINKY_MS < millis()) { blinkyms = millis(); digitalWrite(STATUS_LED, !digitalRead(STATUS_LED)); } - + // forward from Serial to BLEUART if (Serial.available()) {