Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
Diff: bricks/blink.cpp
- Revision:
- 27:09ec26511db8
- Parent:
- 22:e82c7b8a6072
--- a/bricks/blink.cpp Sun Dec 11 00:16:31 2016 +0000
+++ b/bricks/blink.cpp Sun Dec 11 19:18:02 2016 +0000
@@ -10,11 +10,11 @@
// blinking sequence.
//
// The alternative is to setup an ever repeating blink sequence via LED1 using
-// function blinking(), which is non waiting.
+// function blink(), which is non waiting.
//
-// blinking(" x xxx x "); repeating blink sequence, interval = 0.2
-// blinking(" x xxx x ",0.5); repeating blink sequence, interval = 0.5
-// blinking(0); stops blinking sequence
+// blink(" x xxx x "); repeating blink sequence, interval = 0.2
+// blink(" x xxx x ",0.5); repeating blink sequence, interval = 0.5
+// blink(0); stops blinking sequence
//
#include "bricks/target.h"
@@ -64,7 +64,7 @@
}
}
- void blinking(const char *pattern, const char* next, double interval)
+ void blink(const char *pattern, const char* next, double interval)
{
pointer = 0; // stop current activities
led = LED_OFF; // reset led with LED_OFF
@@ -75,8 +75,8 @@
pointer = pattern; // enable callback activty
}
- void blinking(const char *pattern, double interval)
+ void blink(const char *pattern, double interval)
{
- blinking(pattern,pattern,interval);
+ blink(pattern,pattern,interval);
}
\ No newline at end of file
