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: mbed FileSystem_POPS m3pi
Diff: main3.cpp
- Revision:
- 0:398afdd73d9e
- Child:
- 4:cdd8e61cd8c7
diff -r 000000000000 -r 398afdd73d9e main3.cpp
--- /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) {
+
+
+ }
+}