Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2012 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2732882 to your computer and use it in GitHub Desktop.
Save anonymous/2732882 to your computer and use it in GitHub Desktop.
#include <Wire.h>
void setup()
{
Wire.begin();
}
int algo;
void loop()
{
algo = HIGH;
Wire.beginTransmission(2);
Wire.send(13);
Wire.send(algo);
Wire.endTransmission();
delay(500);
algo = LOW;
Wire.beginTransmission(2);
Wire.send(13);
Wire.send(algo);
Wire.endTransmission();
delay(500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment