You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, first of all, excelent library! Helps a lot to get started with MicroPython and the ESP8266...
For some reason, I'm having troubles to make this work...Whenever I read temperature, I get the following error:
>>> bmp.temperature Traceback (most recent call last): File "<stdin>", line 1, in <module> File "bmp180.py", line 141, in temperature ZeroDivisionError: divide by zero
The problem is in line 141, inside temperature method, which is: X2 = self._MC*2**11/(X1+self._MD)
that (X1+self._MD) is equal to zero, then it breaks the division...
I would appreciate it greatly if you could help me to identify that reading problem
Thanks again,
Luke
The text was updated successfully, but these errors were encountered:
Hi, first of all, excelent library! Helps a lot to get started with MicroPython and the ESP8266...
For some reason, I'm having troubles to make this work...Whenever I read temperature, I get the following error:
>>> bmp.temperature
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "bmp180.py", line 141, in temperature
ZeroDivisionError: divide by zero
The problem is in line 141, inside temperature method, which is:
X2 = self._MC*2**11/(X1+self._MD)
that (X1+self._MD) is equal to zero, then it breaks the division...
I would appreciate it greatly if you could help me to identify that reading problem
Thanks again,
Luke
The text was updated successfully, but these errors were encountered: