SHARE
TWEET

ledwebindex

edofhell Jan 28th, 2016 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <meta charset="UTF-8"/>
  2. <table align="center" style="width:60%">
  3. <tr>
  4. <td>
  5. <?
  6. $pinStatus = shell_exec("gpio -g read 02");
  7. if ($pinStatus == 0){
  8. echo '<a href="/led1#/off.php"><img src="pic/on.jpg" /></a>';}
  9. else if($pinStatus == 1){
  10. echo '<a href="/led#1/on.php"><img src="pic/off.jpg" /></a>'; }
  11. ?>
  12. <h1>LED 1</h1>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top