ボタンを押すと、 バッテリ更新を停止し、 他のボタンもロックさせる
Dependencies: RemoteIR TextLCD
Diff: main.cpp
- Revision:
- 25:8ed98982faa7
- Parent:
- 24:9481c8f56a49
- Child:
- 26:0badbc9f9cb3
diff -r 9481c8f56a49 -r 8ed98982faa7 main.cpp --- a/main.cpp Wed Aug 05 07:42:57 2020 +0000 +++ b/main.cpp Wed Aug 05 07:48:24 2020 +0000 @@ -1125,14 +1125,14 @@ SendCMD(); getreply(); pc.printf(replybuff); - wait(1); + ThisThread::sleep_for(1000); sprintf(cmdbuff,"AT+CIPSTO=%d\r\n",SERVtimeout); timeout=500; getcount=50; SendCMD(); getreply(); pc.printf(replybuff); - wait(5); + ThisThread::sleep_for(5000); pc.printf("\n Getting Server IP \r\n"); strcpy(cmdbuff, "AT+CIFSR\r\n"); timeout=2500; @@ -1167,7 +1167,7 @@ led2=!led2; led3=!led3; led4=!led4; - wait(1); + ThisThread::sleep_for(1000); } } time2.reset();