I created this tutorial for my own use to help me understand communication with a MLX90614 and calculating the PEC via CRC-8.
I hope this is helpful to others.
CRC-8_Calculator.ino (12 KB)
I created this tutorial for my own use to help me understand communication with a MLX90614 and calculating the PEC via CRC-8.
I hope this is helpful to others.
CRC-8_Calculator.ino (12 KB)
There seems to be an error in your code.
Correctly so:
#define _R 1
#define _W 0