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 da2abff commit f43dd3e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion borne/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
session_destroy();
header("location:interface/init.php");
}else{
$pin = False;

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

$tube = new Tube();

Expand All @@ -31,6 +33,9 @@
$_SESSION['song_title'] = $song_title;

include_once('create_tube.php');

// Set the value of the pin high (turn it on)
$pin->setValue(PinInterface::VALUE_LOW);

}
?>

0 comments on commit f43dd3e

Please sign in to comment.