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! -
This post is deleted! -
@Christian_M You may try the driver which I have adapted for Pycom modules: https://github.com/robert-hh/BMP085_BMP180
-
@robert-hh It's working now with your driver.
Thank you very much!!!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login