As I told you #x is not allowed in I2CWRITE. What you'll need is to parse each number in x variable (DIG should do the trick), then convert each of them to ASCII, then send the whole thing.