TP Info Indus Polytech paris sud Exemple de programme de base
Dependencies: FileSystem_POPS m3pi mbed
Fork of m3PI_TP_POPS_II2015v0 by
main3.cpp
- Committer:
- bouaziz
- Date:
- 2015-11-23
- Revision:
- 3:b4b0c5219d2a
- Parent:
- 0:398afdd73d9e
File content as of revision 3:b4b0c5219d2a:
#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) {
}
}
