Calculate 8-bit CRC
v = crc.crc8(txt)
Calculates a CRC-8 value of txt.
txt
e.g. v = crc.crc8('Hello world') --> v=65
v = crc.crc8('Hello world') --> v=65