标签: python
import board import busio import adafruit_bmp280 i2c = busio.I2C(board.SCL, board.SDA) sensor = adafruit_bmp280.Adafruit_BMP280_I2C(i2c) print('Temperature: {} degrees C'.format(sensor.temperature)) print('Pressure: {}hPa'.format(sensor.pressure))
this is the error shown while running the program