vitally / BMP280

Library for BMP280 chip's temperature and pressure sensor readings
MIT License
21 stars 7 forks source link

AttributeError: 'module' object has no attribute 'BMP280' #1

Open mariange8282 opened 8 years ago

mariange8282 commented 8 years ago

I'm running the code, but the line: sensor = BMP280.BMP280() has an issue.. it's like don't find the class.

yglodt commented 7 years ago

I ran into the same issue. Did you solve it?

yglodt commented 7 years ago

This solved it for me:

#import BMP280
import Adafruit_BMP.BMP280 as BMP280

Note that you need to install Adafruit_Python_BMP before.