i'm trying to connect and iPod and a lego mindstorm brick . The iPod sends orders to the brick, in order to move the motor A or the motor B. The iPod sends one character as an order, for example, the character a for the motor A and the character b for the motor B. Then, the character is translated to an integer with the use of ascii and this integer is sent via I2C. My problem is that I don't know how to read this integer in java lejos using getData() and how to initialize the i2c sensor.
Could anyone, please, help me?
Thanks in advanced!!!