OneWire crc8 function usage

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
propeller
Posts: 9
Joined: Thu Jun 04, 2020 2:52 am

OneWire crc8 function usage

Post by propeller » Fri Aug 07, 2020 3:57 am

Foolish question. Who can show usage of onewire crc8 function? Which params this function gets? Can't find by myself...

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: OneWire crc8 function usage

Post by shaoziyang » Fri Aug 07, 2020 7:51 am

Code: Select all

import onewire

ow = onewire.OneWire(Pin(22))

buf=b'\x70\x01\x4b\x46\x7f\xff\x0c\x10\x40'
ow.crc8(buf)

Post Reply