示例#1
0
 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