Created
December 10, 2019 01:47
-
-
Save ciniml/71788f7a741be224506f03e12bba861e to your computer and use it in GitHub Desktop.
M5Stick AXP192 compat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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