** Function name: getBattery() ** location: display.cpp ** Description: Delivers the battery value from 1-100 ***************************************************************************************/
| 38 | ** Description: Delivers the battery value from 1-100 |
| 39 | ***************************************************************************************/ |
| 40 | int getBattery() { |
| 41 | int level = M5.Power.getBatteryLevel(); |
| 42 | return (level < 0) ? 0 : (level >= 100) ? 100 : level; |
| 43 | } |
| 44 | |
| 45 | /********************************************************************* |
| 46 | ** Function: InputHandler |
nothing calls this directly
no outgoing calls
no test coverage detected