PHP to control pwm of WiringPi - Raspberry Pi Forums


working on simple project can type 192.168.x.xx/?$n address bar of browser, , pi send pwm signal (using wiringpi library) equivalent variable $n led. starting php, that's why need here. have in mind now:

code: select all

<?php exec("gpio mode 1 pwm"); //declare $n variable (integer maybe) //$n = user input value browser (i know $_get, pretty sure it's not right?) exec("gpio pwm 1 "+$n); ?> 

appreciate , pointers, in advance!



raspberrypi



Comments