Created
December 11, 2014 03:11
-
-
Save extrasleepy/f82e11d15073228f42ef to your computer and use it in GitHub Desktop.
I2C Transmit
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> | |
byte kiss = 0; | |
void setup() | |
{ | |
Wire.begin(); | |
} | |
void loop() | |
{ | |
Wire.beginTransmission(1); //receiving device address 1 | |
Wire.write("Number of Kisses:"); | |
Wire.write(kiss); | |
Wire.endTransmission(); | |
kiss++; | |
delay(100); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment