Skip to content

Commit 91f3bb4

Browse files
committed
feat: alvik.is_battery_charging
1 parent 7835a2a commit 91f3bb4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arduino_alvik/arduino_alvik.py

+7
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,13 @@ def get_battery_charge(self) -> int | None:
733733
return 100
734734
return round(self._battery_perc)
735735

736+
def is_battery_charging(self) -> bool:
737+
"""
738+
Returns True if the device battery is charging
739+
:return:
740+
"""
741+
return self._battery_is_charging
742+
736743
@property
737744
def _touch_bits(self) -> int:
738745
"""

0 commit comments

Comments
 (0)