def isPressed(self): return pz.readInput(self.channel) == 0
def waitForRelease(self): while pz.readInput(self.channel) == 0: pass
def read(self): return pz.readInput(self.channel)
def waitForPress(self): while pz.readInput(self.channel) == 1: pass