Convert int to binary Array

Okay, everything works properly. the next problem is to get the command over I2C from the master.

OK, that kind-of assumes we all know what the Hell it is you're talking about.

string receivestr = wire.receive() //Whole String Don't know of any datatypes called "string (and a missing semicolon)

if (comand = 0){I'm betting you didn't mean an assignment.