Skip to content

Instantly share code, notes, and snippets.

@rkujawa
Last active June 22, 2018 08:17
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 rkujawa/3d7100f907c68305afc88414c4db31ec to your computer and use it in GitHub Desktop.
Save rkujawa/3d7100f907c68305afc88414c4db31ec to your computer and use it in GitHub Desktop.
#include <Wire.h>
void setup()
{
Wire.begin();
Wire.beginTransmission(0x60); // transmit to device
Wire.send(0x40); // byte 1
Wire.send(0); // byte 2
Wire.send(0xC0); // byte 3
Wire.send(0x10); // byte 4
Wire.send(0); // byte 5
Wire.endTransmission(); // stop transmitting
}
byte x = 0;
void loop()
{
x++;
delay(500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment