/ ̄\                |     |                  \_/                  |               /  ̄  ̄ \             /  \ /  \            /   ⌒   ⌒   \            |    (__人__)     |            \    ` ⌒´    /            / ̄ ̄ ̄ ̄ ̄ ̄ ̄ \

Dependencies:   mbed BMP280_SPI ADXL345 MPU9250_SPI GPS FATFileSystem

Files at this revision

API Documentation at this revision

Comitter:
IKobayashi
Date:
Thu Mar 05 05:38:28 2020 +0000
Parent:
4:667f0168f471
Child:
6:49b2f2583f31
Commit message:
F411

Changed in this revision

SDFileSystem.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/SDFileSystem.lib	Thu Mar 05 05:11:03 2020 +0000
+++ b/SDFileSystem.lib	Thu Mar 05 05:38:28 2020 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/mbed_official/code/SDFileSystem/#8db0d3b02cec
+http://mbed.org/users/mbed_official/code/SDFileSystem/#597b2ec5f073
--- a/main.cpp	Thu Mar 05 05:11:03 2020 +0000
+++ b/main.cpp	Thu Mar 05 05:38:28 2020 +0000
@@ -5,14 +5,16 @@
 #include "GPS.h"
 
 //SDFileSystem sd(p11, p12, p13, p15, "sd");
-SDFileSystem sd(p5, p6, p7, p8, "sd");
-DigitalOut led(LED1);
-GPS gps(p9, p10); // tx, rx
-Serial xbee(p28,p27,38400);
-SPI spi(p11, p12, p13);
-mpu9250_spi imu(spi,p14);   //define the mpu9250 object
-BMP280_SPI sensor(p11, p12, p13, p15);
-Serial pc(USBTX, USBRX);    // tx, rx
+SDFileSystem sd(PB_15, PB_14, PB_13, PB_12, "sd");
+DigitalOut led(PC_13);
+GPS gps(PA_9, PA_10); // tx, rx
+Serial xbee(PA_11,PA_12,38400);
+SPI spi(PA_7, PA_6, PA_5);
+mpu9250_spi imu(spi,PA_4);   //define the mpu9250 object
+BMP280_SPI sensor(PA_7, PA_6, PA_5, PB_0);
+Serial pc(PA_2,PA_3);
+
+FILE *fp;
 
 int main()
 {
@@ -20,7 +22,7 @@
 
     mkdir("/sd/data", 0777);
 
-    FILE *fp = fopen("/sd/data/sdtest.csv", "w");
+    fp = fopen("/sd/data/sdtest.csv", "w");
     if(fp == NULL) {
         error("Could not open file for write\r\n");
     }