Skip to content

Instantly share code, notes, and snippets.

@boochow
Created May 27, 2018 15:01
Show Gist options
  • Save boochow/106fb1132f3f4ac66240fefa7529ffcb to your computer and use it in GitHub Desktop.
Save boochow/106fb1132f3f4ac66240fefa7529ffcb to your computer and use it in GitHub Desktop.
def write_data(self, buf):
self.i2c.writeto(self.addr, bytearray([0x40]), False)
self.i2c.writeto(self.addr, buf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment