Compute CRC-8 with polynomial 0x07.
CRC-8 (poly 0x07, init 0x00) is widely used in 1-Wire / SMBus / sensor protocols.
```c
unsigned char crc8(const unsigned char *data, size_t len);
```
Algorithm:
1. crc starts at 0
2. for each byte: crc ^= byte
3. 8 times: if (crc & 0x80) crc = (crc << 1) ^ 0x07; else crc <<= 1;
4. return crc.
Sign in to save your code and track progress across devices.