Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:2732882
Created May 19, 2012

What would you like to do?
#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