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.
Revision 1:0deed3031dfc, committed 2015-01-08
- Comitter:
- okini3939
- Date:
- Thu Jan 08 13:28:36 2015 +0000
- Parent:
- 0:512667e240df
- Commit message:
- fix init
;
Changed in this revision
| IM920.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/IM920.lib Fri Dec 26 15:51:58 2014 +0000 +++ b/IM920.lib Thu Jan 08 13:28:36 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/okini3939/code/IM920/#81b2fd407327 +http://developer.mbed.org/users/okini3939/code/IM920/#db269462ad1c
--- a/main.cpp Fri Dec 26 15:51:58 2014 +0000
+++ b/main.cpp Thu Jan 08 13:28:36 2015 +0000
@@ -3,7 +3,7 @@
DigitalOut myled(LED1);
Serial pc(USBTX, USBRX);
-IM920 im920(p28, p27, p29);
+IM920 im920(p28, p27, p29, p30);
void callback () {
int i;
@@ -20,7 +20,8 @@
pc.baud(115200);
pc.printf("*** IM920\r\n");
- im920.init(10, callback);
+ im920.init();
+ im920.attach(callback);
myled = 1;
for (;;) {
@@ -40,3 +41,4 @@
}
}
}
+