Open martp9 opened 5 years ago
The current code (see git reppo) throws this exeption
indeed
this one works https://github.com/Dafvid/micropython-bmp280
the lib test
from machine import I2C
from bmp280 import BMP280
bus = machine.I2C(sda=machine.Pin(21),scl=machine.Pin(22))
bmp = BMP280(bus)
print(bmp.temperature)
print(bmp.pressure)
I try to debug with the I2C module there should be a value which move, but nothing happens. other register like status are empty.
BMP280 datasheat --> https://cdn-learn.adafruit.com/downloads/pdf/adafruit-bmp280-barometric-pressure-plus-temperature-sensor-breakout.pdf https://cdn-shop.adafruit.com/datasheets/BST-BMP280-DS001-11.pdf
I tested three sensors, but no one of this works