aaaaadaaaaaaaaaaaaaa
Dependencies: ADXL345_I2C BLE_API SDFileSystem mbed-rtos mbed nRF51822
Fork of pbl_b_test by
Revision 1:005a4d3ec64b, committed 2017-01-10
- Comitter:
- nakamae
- Date:
- Tue Jan 10 10:54:21 2017 +0000
- Parent:
- 0:07880269e91a
- Commit message:
- wow
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 07880269e91a -r 005a4d3ec64b main.cpp --- a/main.cpp Fri Dec 30 06:28:37 2016 +0000 +++ b/main.cpp Tue Jan 10 10:54:21 2017 +0000 @@ -176,12 +176,20 @@ ble.gap().setAdvertisingInterval(1000);*/ } +int init_file(void){ + printf("before init 2\r\n"); + wait(1); + fp = fopen("/sd/test.csv", "a"); + fprintf(fp, "id, time\n"); + fclose(fp); +printf("end init \r\n"); + wait(1); + return 0; + } int main (void) { - - //------------------------------------------------------ //加速度センサーの初期化 @@ -197,6 +205,8 @@ ble.init(bleInitComplete); ble.setScanParams(GapScanningParams::SCAN_INTERVAL_MAX,GapScanningParams::SCAN_WINDOW_MAX,0); + printf("before init \r\n"); + init_file(); Thread t2(test_thread, (void *)"2"); Thread t3(test_thread, (void *)"3");