From f43dd3ecea8df97dbd9dba7fbf4dcdb8756b5c4f Mon Sep 17 00:00:00 2001 From: Bastien Bron Date: Tue, 19 Sep 2023 14:46:52 +0200 Subject: [PATCH] gpio stuff --- borne/index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/borne/index.php b/borne/index.php index d2adfb2..db4d50d 100644 --- a/borne/index.php +++ b/borne/index.php @@ -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(); @@ -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); } ?>