add lua interface for i2c