Skip to content

Commit 0905b50

Browse files
authored
Merge pull request #33 from adafruit/3.3-battery-voltage
Fix multiplier for battery voltage
2 parents d488d50 + 85df610 commit 0905b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_magtag/peripherals.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def play_tone(self, frequency, duration):
8383
@property
8484
def battery(self):
8585
"""Return the voltage of the battery"""
86-
return (self._batt_monitor.value / 65535.0) * 2.6 * 2
86+
return (self._batt_monitor.value / 65535.0) * 3.3 * 2
8787

8888
@property
8989
def neopixel_disable(self):

0 commit comments

Comments
 (0)