def module_ds18():
OPTS = [
cfg.Opt('type',
short='t',
default="ds18b20",
help='Specific type of Dallas DS18 family midule.'),
cfg.Opt('addr',
short='a',
default='0',
help='Specific module address at 1-wire bus.')
]
config = _config(DS18_MODULE, OPTS)
manager = ModuleManager(**config)
manager.run()
评论列表
文章目录