dernier TP robot laby m3pi

Dependencies:   mbed FileSystem_POPS m3pi

Files at this revision

API Documentation at this revision

Comitter:
bouaziz
Date:
Mon Nov 23 22:58:34 2015 +0000
Child:
1:614c23cf3deb
Commit message:
program example for II labs of Polytech paris Sud EES department.; exemple de base pou rle TP de II

Changed in this revision

FileSystem.lib Show annotated file Show diff for this revision Revisions of this file
m3pi.lib Show annotated file Show diff for this revision Revisions of this file
main3.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FileSystem.lib	Mon Nov 23 22:58:34 2015 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/bouaziz/code/FileSystem_POPS/#5bc5d2b70622
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m3pi.lib	Mon Nov 23 22:58:34 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/chris/code/m3pi/#64948bf04791
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main3.cpp	Mon Nov 23 22:58:34 2015 +0000
@@ -0,0 +1,31 @@
+
+#include "mbed.h"
+#include "m3pi.h"
+#include "MSCFileSystem.h"
+
+m3pi m3pi;                                  // Initialise the m3pi
+
+Serial xbee(p28,p27);
+DigitalOut resetxbee(p26);
+Serial pc(USBTX, USBRX);                    // For debugging and pc messages, uses commented out to prevent hanging
+MSCFileSystem fs("fs"); 
+
+BusOut myleds(LED1, LED2, LED3, LED4);
+
+int main() {
+    resetxbee =0;
+    wait(0.01);
+    resetxbee =1;
+    
+    FILE *p= fopen("/fs/tt.txt","a+");
+    m3pi.sensor_auto_calibrate();
+    wait(1.);
+    
+    fprintf(p,"ecrire dans la cle USB\r\n");
+    fclose(p);
+    
+    while(1) {
+        
+        
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Nov 23 22:58:34 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file