Created
May 19, 2012 23:51
-
-
Save anonymous/2732882 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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