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
Fork of BLE_Button by
Revision 11:d9749dc3653d, committed 2016-08-26
- Comitter:
- jahatch
- Date:
- Fri Aug 26 17:56:08 2016 +0000
- Parent:
- 10:7943b5c1117a
- Commit message:
- dg
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Dec 30 09:54:06 2015 +0000
+++ b/main.cpp Fri Aug 26 17:56:08 2016 +0000
@@ -21,6 +21,8 @@
DigitalOut led1(LED1);
InterruptIn button(BUTTON1);
+Serial pc(p16, p15);
+
const static char DEVICE_NAME[] = "Button";
static const uint16_t uuid16_list[] = {ButtonService::BUTTON_SERVICE_UUID};
@@ -101,6 +103,7 @@
int main(void)
{
+ pc.baud(9600);
led1 = 1;
Ticker ticker;
ticker.attach(periodicCallback, 1);
@@ -119,6 +122,8 @@
buttonServicePtr->updateButtonState(buttonState);
buttonState = IDLE;
}
+
+ pc.printf("Hello World");
ble.waitForEvent();
}
