Code: Select all
gpio readall gpio -g mode 24 output gpio -g write 24 1 gpio -g write 24 0 gpio -g toggle 24 gpio -g toggle 24
Thanks. I had not seen that yet. So go all good things. Time to look for perl or python bindings after a short while.
A better alternative is don't use sudo at all. Use the pigpiod daemon to control the pins. Drive pigpiod from the web cgi program with the python pigpio library.