** Function name: getBattery() ** location: display.cpp ** Description: Delivers the battery value from 1-100 ***************************************************************************************/
| 24 | ** Description: Delivers the battery value from 1-100 |
| 25 | ***************************************************************************************/ |
| 26 | int getBattery() { |
| 27 | int percent; |
| 28 | percent = M5.Power.getBatteryLevel(); |
| 29 | return (percent < 0) ? 0 : (percent >= 100) ? 100 : percent; |
| 30 | } |
| 31 | |
| 32 | /********************************************************************* |
| 33 | ** Function: setBrightness |
nothing calls this directly
no outgoing calls
no test coverage detected