全新 Maix 系列产品 MaixCAM 已上线, 全新 MaixPy 功能更丰富,性能更强大,软件更易用,文档更全面!x

onewire(单总线)的使用

使用方法

  • 从 modules 导入 onewire 模块
from modules import onewire
  • 创建 onewire 对象
fm.register(14, fm.fpioa.GPIOHS2, force=True)
bus = onewire(fm.fpioa.GPIOHS2)
  • 搜索,读写数据等操作

一、例程:#

ds18b20 温度读取:onwire_ds18b20

Related Issues not found

Please login GitHub to create issue