Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <meta charset="UTF-8"/>
- <table align="center" style="width:60%">
- <tr>
- <td>
- <?
- $pinStatus = shell_exec("gpio -g read 02");
- if ($pinStatus == 0){
- echo '<a href="/led1#/off.php"><img src="pic/on.jpg" /></a>';}
- else if($pinStatus == 1){
- echo '<a href="/led#1/on.php"><img src="pic/off.jpg" /></a>'; }
- ?>
- <h1>LED 1</h1>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement