Browse Source

suppression d'une partie inutile

master
BOLLET Corentin 1 year ago
parent
commit
eac250daa2
  1. 12
      index.php

12
index.php

@ -42,18 +42,6 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
exec('gpio write 0 0'); exec('gpio write 0 0');
} }
} }
if (isset($_POST['volet'])) {
$volet = $_POST['volet'];
if ($volet == "Ouvrir") {
exec('gpio write 2 1');
sleep(1);
exec('gpio write 2 0');
} else {
exec('gpio write 3 1');
sleep(1);
exec('gpio write 3 0');
}
}
} }
?> ?>
<body> <body>

Loading…
Cancel
Save