better implementation of Serial for I2C debugging