示例#1
0
 def isPressed(self):
     return pz.readInput(self.channel) == 0
示例#2
0
 def waitForRelease(self):
     while pz.readInput(self.channel) == 0:
         pass
示例#3
0
 def read(self):
     return pz.readInput(self.channel)
示例#4
0
 def waitForPress(self):
     while pz.readInput(self.channel) == 1:
         pass