microbit 的 BMP280 驱动(python)

micro:bit编程、教学、展示
STEM
回复
头像
shaoziyang
帖子: 3954
注册时间: 2019年 10月 21日 13:48

microbit 的 BMP280 驱动(python)

#1

帖子 shaoziyang »

BMP280 高精度气压传感器的 microbit 驱动。

使用方法(需要先将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
 

头像
shaoziyang
帖子: 3954
注册时间: 2019年 10月 21日 13:48

Re: microbit 的 BMP280 驱动(python)

#2

帖子 shaoziyang »

图片

回复

  • 随机主题
    回复总数
    阅读次数
    最新文章