We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fcd84a commit 23d09fbCopy full SHA for 23d09fb
projects/maixpy_m5stickv/builtin_py/pmu.py
@@ -167,7 +167,7 @@ def setScreenBrightness(self, brightness):
167
raise OutOfRange("Range for brightness is from 0 to 15")
168
self.__writeReg(0x91, (int(brightness) & 0x0f) << 4)
169
170
- def getKeyStuatus(self): # -1: NoPress, 1: ShortPress, 2:LongPress
+ def getKeyStatus(self): # -1: NoPress, 1: ShortPress, 2:LongPress
171
but_stu = self.__readReg(0x46)
172
if (but_stu & (0x1 << 1)):
173
return 1
0 commit comments