コード例 #1
0
ファイル: gpio.py プロジェクト: xie-xuan/rpi3-webiopi
 def setHWPWMDuty(self, channel, duty):
     self.checkPostingValueAllowed()
     GPIO.HWPWMsetDuty(channel, duty)
     return GPIO.HWPWMgetDuty(channel)
コード例 #2
0
ファイル: gpio.py プロジェクト: xie-xuan/rpi3-webiopi
 def getHWPWMDuty(self, channel):
     return GPIO.HWPWMgetDuty(channel)