linetrace saikyou
Dependencies: RemoteIR TextLCD
Diff: main.cpp
- Revision:
- 55:d3c19efa1ef9
- Parent:
- 54:f862caf08a7f
- Child:
- 56:d02c62149a19
--- a/main.cpp Wed Sep 02 07:20:41 2020 +0000 +++ b/main.cpp Thu Sep 03 01:26:36 2020 +0000 @@ -900,8 +900,15 @@ strcat(webbuff, "<style type=\"text/css\">.noselect{ width:100px;height:60px;}.light{ width:100px;height:60px;background-color:#00ff66;}.load{ width: 50px; height: 30px;font-size:10px}</style>"); strcat(webbuff, "</head><body><center><p><strong>Robot Car Remote Controller"); strcat(webbuff, "</strong></p><td style='vertical-align:top;'><strong>Battery level "); - if(b > 30) { //残電量表示 + if(b >= 70) { //残電量表示 + strcat(webbuff, "<font color=\"blue\">"); sprintf(webbuff, "%s%3d", webbuff, b); + strcat(webbuff, "</font>"); + } + else if(b >= 40) { + strcat(webbuff, "<font color=\"orange\">"); + sprintf(webbuff, "%s%3d", webbuff, b); + strcat(webbuff, "</font>"); } else { //30%より下の場合残電量を赤文字 strcat(webbuff, "<font color=\"red\">"); sprintf(webbuff, "%s%3d", webbuff, b);