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: BMP180 MPU6050 SDFileSystem mbed
Fork of SDFileSystem_HelloWorld by
Diff: main.cpp
- Revision:
- 7:5f8080485160
- Parent:
- 6:aae92602ef84
- Child:
- 8:8b7e9aa3a2fc
diff -r aae92602ef84 -r 5f8080485160 main.cpp
--- a/main.cpp Sun Oct 29 13:40:18 2017 +0000
+++ b/main.cpp Sun Nov 05 09:41:40 2017 +0000
@@ -46,11 +46,11 @@
int main() {
-// pc.printf("Hello World!\n");
oshirase2.output();
oshirase1 = 0;
oshirase2 = 0;
twe.baud(115200);
+ twe.printf("Hello World!\n");
mpu.setAcceleroRange(0);
bmp.Initialize(64,BMP180_OSS_ULTRA_LOW_POWER);
mkdir("/sd/mydir", 0777);
@@ -178,7 +178,7 @@
/* データ保存 */
if(Log_cnt==0) {
- fp = fopen("/sd/mydir/sdtest.txt", "a");
+ fp = fopen("/sd/mydir/log.txt", "a");
}
fprintf(fp, "%d,%f, %f, %f, %f, %f, %f, %f \r\n",Phase, Time, Temperature, Pressure, Altitude, a[0],a[1],a[2]);
Log_cnt++;
