Inserted I2C generic io functions into Lua script.