Crock101:
OK so I implemented the code like this:...
...
void loop() {
if (Serial.available() > 0)
Wire.requestFrom(2, 6);
while(Wire.available())
{
char c = Wire.read();
Serial.print(c);
}
...
...
and I'll get the address for the sensor on Monday went it's suppose to arrive.
you need to stop just copying code and then guessing where you should paste them.
look at the above as pseudo-code again;
[color=brown][b]if[/b][/color] ([i]there is something on the Serial connection[/i] ) //
that's the USB connection from Arduino to your computer
[i]request something from the I2C sensor[/i]
[color=brown][b]while[/b][/color]( [i]I2C ["serial"] connection is available[/i] )
{
[i] read the data into var 'c'
show me what 'c' is[/i]
}
does that sound like what you want to do ?
Crock101:
In the mean time could you help me get that parallax ultrasonic sensor code working sense that's what I'm going to be using to detect the distance between me and the robot?
http://www.lmgtfy.com/?q=parallax+ultrasonic+sensor+arduino+code