Following this thread(Float I2C) I have implemented the code to read a float into my sketch using an Arduino Micro. I'm using it in a custom 3D printer application and the Micro would be a slave device responsible for controlling a peripheral device. The Master would send over data regarding x and y changes, which the slave uses for calculations. The G Code the master would use would be
M260 A5 B65 ; Send 'A' to address 5
M260 A0x7F B0x41 ; Send 'A' to address 7F (hex)
M260 A0 B82:101:112:82:97:112 ; Send 'RepRap' to address 0
RepRap Wiki
My question is, because I'm shaky on the i2c communication and byte manipulation in general, what is the best way to send over two values to the slave device? Would two M260 commands be the solution? Or, do those colons demarcate the byte values?