pub fn write_u24(data: u32, buf: &mut [u8; 3])
Write three bytes from an integer value into the buffer.