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 mbed nRF51822 X_NUCLEO_IDB0XA1
Fork of BLE_iBeacon by
Diff: main.cpp
- Revision:
- 6:26eab6ee6df4
- Parent:
- 5:97ce285ff00a
- Child:
- 7:e2bfd5db6713
diff -r 97ce285ff00a -r 26eab6ee6df4 main.cpp
--- a/main.cpp Tue May 20 17:56:47 2014 +0100
+++ b/main.cpp Tue May 20 18:03:51 2014 +0100
@@ -37,14 +37,14 @@
*(uint32_t *)0x40006C18 = 0x00008000;
/* Setup blinky: led1 is toggled in main, led2 is toggled via Ticker */
- led1=1;
- led2=1;
+ led1 = 1;
+ led2 = 1;
flipper.attach(&tickerCallback, 1.0);
/* Initialise the nRF51822 */
pc.printf("Initialising the nRF51822\n\r");
nrf.init();
-
+
GapAdvertisingParams advParams (
GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED );
GapAdvertisingData advData;
@@ -73,8 +73,8 @@
/* Do blinky on LED1 while we're waiting for BLE events */
for (;; ) {
- led1 = !led1;
- wait(1);
+ led1 = !led1;
+ wait(1);
}
}
