Skip to content

Commit

Permalink
gpio stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien Bron authored and Bastien Bron committed Sep 19, 2023
1 parent d2f7a8a commit e600edb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions borne/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@
session_destroy();
header("location:interface/init.php");
}else{

include('gpio.php');
$pin = False;


// Set the value of the pin high (turn it on)
$pin->setValue(PinInterface::VALUE_HIGH);
$tube = new Tube();

$user_name = $_SESSION['user_name'];
Expand All @@ -34,8 +30,6 @@
$_SESSION['song_title'] = $song_title;

include_once('create_tube.php');
sleep(2);
// Set the value of the pin high (turn it on)
$pin->setValue(PinInterface::VALUE_LOW);

}
?>

0 comments on commit e600edb

Please sign in to comment.