Something went wrong. Try again.
Making sure we can compute the CRC for a Sensirion SHT3X temperature and humidity sensor
Something went wrong. Try again.
242 B · 9 lines · Created 4d ago Zig
123456789const std = @import("std");
pub fn main() !void { std.debug.print("hello there\n", .{});
const in = [_]u8{ 0xBE, 0xEF }; const crc = std.hash.crc.Crc8Nrsc5.hash(&in); std.debug.print("crc of 0x{X}: 0x{X}\n", .{ in, crc });}