Skip to content

Instantly share code, notes, and snippets.

@ciniml
Created December 10, 2019 01:47
Show Gist options
  • Save ciniml/71788f7a741be224506f03e12bba861e to your computer and use it in GitHub Desktop.
Save ciniml/71788f7a741be224506f03e12bba861e to your computer and use it in GitHub Desktop.
M5Stick AXP192 compat
class AXPCompat(object):
def __init__(self):
if( hasattr(axp, 'setLDO2Vol') ):
self.setLDO2Vol = axp.setLDO2Vol
else:
self.setLDO2Vol = axp.setLDO2Volt
axp = AXPCompat()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment