白宦成

Do things like hackers and try to make the world a better place

Micro:bit 显示室内温度


Micro:bit 所使用的核心芯片 nrf51822 自带了温度传感器,因此,我们可以使用micro:bit 来显示室内的温度。

实现

实现方法很简单,只需要在 makecode 上加入这样的代码,就可以实现输出温度了。

6zvg1

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注