Jump to content

bub

Members
  • Posts

    3
  • Joined

  • Last visited

  1. right! Thanks for the answer yes, I'm running the script from command line and not each line of code... Perhaps I've resolved: was only a problem of privilege, I've put "sudo user nopassword" on visudo and now gpio.init() don't stop working Thanks
  2. Hi to all, I'm newer so I hope your comprehension. my board Orange Pi Zero 512 my python script for turno on/off rele board works well, but only if call it directly form terminal. If call it from cgi, crontab don't controll the rele board: gpio.init() semms crashed but the script complete its work. What I'm wrong? Thanks ---- from pyA20.gpio import gpio from pyA20.gpio import port gpioinit = gpio.init() gpioscfg = gpio.setcfg(port.PA19, gpio.OUTPUT) gpio.output(port.PA19, gpio.LOW) print "ok" -----
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines