MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / getBattery

Function getBattery

boards/reaper/interface.cpp:113–117  ·  view source on GitHub ↗

** Function name: getBattery() ** location: display.cpp ** Description: Delivers the battery value from 1-100+ ***************************************************************************************/

Source from the content-addressed store, hash-verified

111** Description: Delivers the battery value from 1-100+
112***************************************************************************************/
113int getBattery() {
114 int percent = 0;
115 percent = bq.getChargePcnt();
116 return (percent < 0) ? 0 : (percent >= 100) ? 100 : percent;
117}
118
119bool isCharging() {
120 return bq.getIsCharging(); // Return the charging status from BQ27220

Callers

nothing calls this directly

Calls 1

getChargePcntMethod · 0.80

Tested by

no test coverage detected