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: simple-mbed-client
Fork of simple-mbed-client-example by
Diff: main.cpp
- Revision:
- 28:f5e41738699d
- Parent:
- 23:16f397924e3d
- Child:
- 29:dd6231df71bb
--- a/main.cpp Wed Aug 24 19:06:21 2016 +0200
+++ b/main.cpp Thu Aug 25 14:39:39 2016 +0200
@@ -8,7 +8,7 @@
DigitalOut led(LED1);
DigitalOut blinkLed(LED2);
-InterruptIn btn(PTA1);
+InterruptIn btn(SW2);
Semaphore updates(0);
void patternUpdated(string v) {
@@ -27,10 +27,10 @@
}
void registered() {
- printf("registered\n");
+ pc.printf("Registered\r\n");
}
void unregistered() {
- printf("unregistered\n");
+ pc.printf("Unregistered\r\n");
}
void play(void* args) {
