Battery and SDcard Q

Dependencies:   mbed PowerControl SDFileSystem

Fork of HeptaBattery_SDFilesystem_Q by 智也 大野

Revision:
0:9eb94b338772
Child:
1:6d9166677466
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Dec 09 04:53:49 2016 +0000
@@ -0,0 +1,28 @@
+#include "mbed.h"
+#include "SDFileSystem.h"
+#include "HeptaBattery.h"
+Serial pc(USBTX,USBRX);
+                        //ピンアサイン読み込み、オブジェクトの生成
+
+
+int main() {
+    pc.baud(9600);
+    float bt;
+    pc.printf("Hello world!\r\n");
+    mkdir("/sd/mydir", 0777);
+    printf("helloworld\r\n");
+    FILE *fp = fopen("/sd/mydir/sdtest.txt","w");
+    if(fp == NULL) {
+        error("Could not open file for write\r\n");
+    }
+    for(int i=0;i<10;i++){
+     //メンバー関数の使用
+     
+     
+     
+     
+       
+        }
+    fclose(fp); 
+    printf("Goodbye!!\r\n");
+}
\ No newline at end of file