bChange
Dependencies: TextLCD
Diff: main.cpp
- Revision:
- 6:1545ad4c64e6
- Parent:
- 5:a0ebf165abb1
- Child:
- 7:3fc517224e66
diff -r a0ebf165abb1 -r 1545ad4c64e6 main.cpp --- 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();