Skip to content

Instantly share code, notes, and snippets.

@chaeplin
Created March 1, 2016 11:15
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 chaeplin/7eab9dd5eaa298427973 to your computer and use it in GitHub Desktop.
Save chaeplin/7eab9dd5eaa298427973 to your computer and use it in GitHub Desktop.
requestEvent.ino
void requestEvent()
{
if ( m % 2 == 0 ) {
I2C_writeAnything(sensor_data);
} else {
I2C_writeAnything(sensor_data_copy);
}
m++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment