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
Revision 6:17bbfe13b5e4, committed 2014-09-30
- Comitter:
- Bobty
- Date:
- Tue Sep 30 21:03:02 2014 +0000
- Parent:
- 5:6f5f1b37bd59
- Child:
- 7:ec41c916136a
- Commit message:
- Works fine with ticker and 5ms data
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Sep 30 06:16:54 2014 +0000
+++ b/main.cpp Tue Sep 30 21:03:02 2014 +0000
@@ -35,7 +35,7 @@
#endif /* #if NEED_CONSOLE_OUTPUT */
// Sample interval (uS)
-volatile uint32_t sampleIntervalUs = 10000;
+volatile uint32_t sampleIntervalUs = 5000;
// Timer to do the sampling etc
Timer intervalTimer;
@@ -58,7 +58,7 @@
void periodicCallback(void)
{
callbackCount++;
- if (callbackCount == 100)
+ if (callbackCount == 200)
{
callbackCount = 0;
led1 = !led1; /* Do blinky on LED1 while we're waiting for BLE events */