from pwnagotchi.ui.components import LabeledValue
from pwnagotchi.ui.view import BLACK
import pwnagotchi.ui.fonts as fonts
import pwnagotchi.plugins as plugins
import pwnagotchi
class PiSugar3(plugins.Plugin):
author = 'nullm0ose'
version = '1.0.0'
license = 'MIT'
description = 'A plugin that shows charging status and battery percentage for the PiSugar3'
import logging import struct import time
from pwnagotchi.ui.components import LabeledValue from pwnagotchi.ui.view import BLACK import pwnagotchi.ui.fonts as fonts import pwnagotchi.plugins as plugins import pwnagotchi
class UPS: def init(self): import smbus self._bus = smbus.SMBus(1) self.sample_size = 25 self.battery_readings = []
class PiSugar3(plugins.Plugin): author = 'nullm0ose' version = '1.0.0' license = 'MIT' description = 'A plugin that shows charging status and battery percentage for the PiSugar3'