sample for Interplan IM920 library, 920MHz module see: https://developer.mbed.org/users/okini3939/code/IM920/

Dependencies:   IM920 mbed

Files at this revision

API Documentation at this revision

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 @@
         }
     }
 }
+