Skip to content

Instantly share code, notes, and snippets.

@tombrad
Created August 2, 2017 21:50
Show Gist options
  • Save tombrad/8523175b442d6758c063078af8672e10 to your computer and use it in GitHub Desktop.
Save tombrad/8523175b442d6758c063078af8672e10 to your computer and use it in GitHub Desktop.
<html>
<head>
<?php
if (isset($_POST['LedON']))
{
$output = array();
exec("python /var/www/html/raspduino/enciendeled.py", $output);
echo $output[0];
}
if (isset($_POST['LedOFF']))
{
$output = array();
exec("python /var/www/html/raspduino/enciendeled.py", $output);
echo $output[0];
}
?>
<title>Led Arduino</title>
</head>
<body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment