Use of onewire (single bus)

Instructions

  • Import onewire module from modules
from modules import onewire
  • Create onewire object
fm.register(14, fm.fpioa.GPIOHS2, force=True)
bus = onewire(fm.fpioa.GPIOHS2)
  • Search, read and write data and other operations

Routine

ds18b20 temperature reading: onwire_ds18b20