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.
Diff: sensors/sensors.cpp
- Revision:
- 32:aee87dcaf7ca
- Parent:
- 27:d392a95f4799
- Child:
- 33:2dbbe198adaf
--- a/sensors/sensors.cpp Wed May 08 11:00:09 2019 +0000 +++ b/sensors/sensors.cpp Mon May 13 03:44:50 2019 +0000 @@ -25,7 +25,14 @@ DigitalIn hand(pin_hand,PullUp); DigitalIn switch_lo(pin_switch_lo,PullUp); DigitalIn switch_li(pin_switch_li,PullUp); -InterruptIn mode4(pin_mode4,PullUp); +DigitalIn switch_LR(pin_switch_LR,PullUp); +DigitalIn switch_modes[3]= +{ + DigitalIn(pin_switch_modes[0],PullUp), + DigitalIn(pin_switch_modes[1],PullUp), + DigitalIn(pin_switch_modes[2],PullUp), +}; +//InterruptIn mode4(pin_mode4,PullUp); DigitalOut led4(LED4); int hand_mode=NORMAL; @@ -44,7 +51,7 @@ const char kFileName[] = "/local/sensors.csv"; Timer filetimer; -int FileOpen() //1:異常終了 +/*int FileOpen() //1:異常終了 { printf("file open\r\n"); if ((fp = fopen(kFileName, "w")) == NULL) { @@ -79,7 +86,7 @@ filetimer.stop(); if(fp != NULL) fclose(fp); -}; +};*/ void TickerSetUp()