Skip to content

Instantly share code, notes, and snippets.

@stestagg
Last active March 25, 2016 20:45
Show Gist options
  • Save stestagg/45247103de5c3bb66230 to your computer and use it in GitHub Desktop.
Save stestagg/45247103de5c3bb66230 to your computer and use it in GitHub Desktop.
>>> from machine import *
>>> from pyb import *
>>> iic = I2C(Pin(2), Pin(0))
>>> iic.writeto(60, b'\x80\xAF') # Turn display on
>>> iic.writeto(60, b'\x80\x8D\x80\x14') # Set the voltage pump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment