![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
bChange
Dependencies: TextLCD
Diff: main.cpp
- Revision:
- 6:1545ad4c64e6
- Parent:
- 5:a0ebf165abb1
- Child:
- 7:3fc517224e66
--- a/main.cpp Wed Jul 29 01:11:13 2020 +0000 +++ b/main.cpp Wed Jul 29 01:12:14 2020 +0000 @@ -29,7 +29,7 @@ void change(){ lcd.setBacklight(TextLCD::LightOn); while(true){ - b = (int)((battery.read()* MAX_V - MIN_V)/0.67 + 0.5)*10; + b = (int)((battery.read()* MAX_V - MIN_V)/0.067 + 0.5)*10; if(b < 0){//すべての機能停止 lcd.setBacklight(TextLCD::LightOff); bTimer.stop();