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
Revision 30:746d37d781de, committed 2014-06-10
- Comitter:
- Rohit Grover
- Date:
- Tue Jun 10 10:46:45 2014 +0100
- Parent:
- 29:bf3c27639f58
- Child:
- 31:93e50a3c3dc6
- Commit message:
- remove ticker; consumes un-necessary power
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Jun 10 09:31:24 2014 +0000
+++ b/main.cpp Tue Jun 10 10:46:45 2014 +0100
@@ -20,8 +20,6 @@
BLEPeripheral ble; /* BLE radio driver */
DigitalOut mainloopLED(LED1);
-DigitalOut tickerLED(LED2);
-Ticker flipper;
Serial pc(USBTX,USBRX);
/*
@@ -50,18 +48,11 @@
0xC8 // 2's complement of the Tx power (-56dB)
};
-void tickerCallback(void)
-{
- tickerLED = !tickerLED;
-}
-
void setupAppHardware(void)
{
/* Setup blinkies: mainloopLED is toggled in main, tickerLED is
* toggled via Ticker */
mainloopLED = 1;
- tickerLED = 1;
- flipper.attach(&tickerCallback, 1.0);
}
int main(void)
