Skip to content

Instantly share code, notes, and snippets.

@extrasleepy
Created December 11, 2014 03:11
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 extrasleepy/f82e11d15073228f42ef to your computer and use it in GitHub Desktop.
Save extrasleepy/f82e11d15073228f42ef to your computer and use it in GitHub Desktop.
I2C Transmit
#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