201803_oshima_jodam_test
Dependencies: BMP180 MPU6050 SDFileSystem mbed
Fork of SDFileSystem_HelloWorld by
Diff: main.cpp
- Revision:
- 12:c32b14ca0196
- Parent:
- 11:0f8d26600248
- Child:
- 13:4c1633775de7
--- a/main.cpp Mon Mar 12 09:15:12 2018 +0000 +++ b/main.cpp Sat Mar 17 15:44:14 2018 +0000 @@ -7,7 +7,7 @@ #define UNLOCK 1 #define LOCK 0 #define TIMER 30 //開放タイマー -#define RATE 50//判定周期 +#define RATE 50//判定周期 謎の不具合により、145行目のkaihou.attach(_open,1/RATE);はコメントアウトしてるので、直接数字をいじってください #define ALT 1 //落下判断高度 SDFileSystem sd(p5, p6, p7, p8, "sd"); // the pinout on the mbed Cool Components workshop board @@ -76,6 +76,7 @@ if(ret == -1){ goto normal; }else{ + twe.printf("reboot now\r\n"); goto yabai; }