导入错误(所有三个导入错误)(使用呼吸板时)

时间:2018-06-30 08:37:10

标签: 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

0 个答案:

没有答案