View Single Post
  #7   Spotlight this post!  
Unread 29-01-2015, 18:19
ianespana ianespana is offline
Registered User
no team
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Mexico
Posts: 11
ianespana is an unknown quantity at this point
Question about I2C Communication

This is our current Arduino code:

Code:
#include 



void setup()

{

  Wire.begin(2); // join i2c bus (address optional for master)

}



byte x = 0;



void loop()

{

  Wire.write(x);              // sends one byte  

  x++;

  delay(500);

}

Last edited by ianespana : 29-01-2015 at 20:01.
Reply With Quote