I2c from arduino to imp

hello i have this arduino code

`#include <Wire.h>

const int adc_address=41; // I2C Address

char keyboard_data[80]; // Array to store keyboard values

void setup()
{
//Send settings to ADC_I2C device (optional)
Wire.begin(); // join i2c bus (address optional for master)
//Start Serial port
Serial.begin(9600); // start serial for output
}

void loop()
{
unsigned char i;
char keyboard_chars;

Wire.beginTransmission(adc_address); // transmit to device
Wire.write(1); // ask how many characters are in buffer
Wire.endTransmission(); // stop transmitting
Wire.requestFrom(adc_address, 1); // request 1 bytes from slave device
while(Wire.available())
{
keyboard_chars = Wire.read();
}

Serial.println(keyboard_chars, DEC); // print number of buffer characters

Wire.beginTransmission(adc_address); // transmit to device
Wire.write(0); // get keyboard characters
Wire.endTransmission(); // stop transmitting
Wire.requestFrom(adc_address, keyboard_chars); // request characters from slave device
i=0;
while(Wire.available())
{
keyboard_data[i++] = Wire.read();
keyboard_data[i] = ‘\0’;
}

Serial.println(keyboard_data); // print the character
keyboard_data[0]=’\0’;

delay(5000); // Wait 5 seconds
}`

Can someone help me translate it to i2c
I find imp i2c a litle confusing so i appreciate some help here.
I think its easy but i´m not there yet.

Thank you a lot

Edit - wrapped your code in a < code > </ code > tag for better formatting. Please use code tags in the future (the C above the text entry box).

I encourage you take a look at @SmittyTone’s I2C article, if you haven’t already. It goes through the basics, and how to implement an I2C device’s functionality in Squirrel.