We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58c723e commit 5fa5782Copy full SHA for 5fa5782
m5stack/libs/module/pps.py
@@ -169,7 +169,7 @@ def read_input_voltage(self) -> float:
169
Returns:
170
float: The current input voltage in Volts.
171
"""
172
- voltage = self.i2c.readfrom_mem(self.addr, 0x10, 4)
+ voltage = self.i2c.readfrom_mem(self.addr, 0x14, 4)
173
return struct.unpack("<f", voltage)[0]
174
175
def read_data_update_flag(self) -> int:
@@ -193,7 +193,7 @@ def read_mcu_temperature(self) -> float:
193
194
float: The current MCU temperature in degrees Celsius.
195
196
- temperature = self.i2c.readfrom_mem(self.addr, 0x14, 4)
+ temperature = self.i2c.readfrom_mem(self.addr, 0x10, 4)
197
return struct.unpack("<f", temperature)[0]
198
199
def read_module_id(self) -> int:
0 commit comments