使用方法(需要先将bmp280.py复制到microbit):
代码: 全选
'''
BMP280 demo
Author: shaoziyang
Date: 2018.2
http://www.micropython.org.cn
'''
from microbit import *
import bmp280
b = bmp280.BMP280()
while True:
sle ep(500)
b.get()
https://github.com/shaoziyang/microbit- ... sor/bmp280