コード例 #1
0
ファイル: _P029_DomoOutput.py プロジェクト: jabastien/rpieasy
 def plugin_write(self, cmd):
     res = False
     cmdarr = cmd.split(",")
     cmdarr[0] = cmdarr[0].strip().lower()
     if cmdarr[0].strip().lower() in gpiohelper.commandlist:
         res = gpiohelper.gpio_commands(cmd)
     return res
コード例 #2
0
 def plugin_write(self, cmd):
     res = False
     cmdarr = cmd.split(",")
     cmdarr[0] = cmdarr[0].strip().lower()
     if cmdarr[0].strip().lower() in ["gpio", "pwm", "pulse", "longpulse"]:
         res = gpiohelper.gpio_commands(cmd)
     return res