module documentation

Battery voltage helper

Function percentage Get battery percentage from voltage
Function run Display battery percentage for clock screen
Function voltage Get battery voltage
Variable adc Undocumented
Variable last_bitmap Undocumented
def percentage(voltage: float) -> float:

Get battery percentage from voltage Args: voltage (float): Battery voltage Returns: float: Battery percentage

def run(tft):

Display battery percentage for clock screen Args: tft (any): TFT class

def voltage(samplecount: int = 10) -> float:

Get battery voltage Args: samplecount (int, optional): ADC sample count, default is 10 Returns: float: Battery voltage

adc =

Undocumented

last_bitmap =

Undocumented