LoPy4 - BMP180 - 'I2C' object has no attribute 'start'
-
Hello,
I'm new to coding with the pycom modules and tried to set up a BMP180 sensor with the I2C pins.
For that I used the bmp180.py library from github (https://github.com/micropython-IMU/micropython-bmp180) and a code example that i changed for a simple output of the values.
I'm using the LoPy4 and an Expansion Board 3.0 with the newest firmware on it.When i try to run the code first i get the outpout from the i2c scan and then I get an error:
I2C setup scan [119] #the output from i2c.scan()
Traceback (most recent call last):
File "<stdin>", line 14, in <module>
File "bmp180.py", line 46, in __ init __
AttributeError: 'I2C' object has no attribute 'start'Here the two files I'm using
bmp180.py
BMP180-testfile.pyI couldn't find any soulution what's wrong so I hope to find some help here.
Thank you!
-
@robert-hh It's working now with your driver.
Thank you very much!!!
-
@Christian_M You may try the driver which I have adapted for Pycom modules: https://github.com/robert-hh/BMP085_BMP180
-
This post is deleted!