def setHWPWMDuty(self, channel, duty): self.checkPostingValueAllowed() GPIO.HWPWMsetDuty(channel, duty) return GPIO.HWPWMgetDuty(channel)
def getHWPWMDuty(self, channel): return GPIO.HWPWMgetDuty(channel)