Fix typo. update iic_write function
Add ntime rolling support