PHP Classes

Great work overall!

Recommend this page to a friend!

      PHP Led Raspberry PI  >  All threads  >  Great work overall!  >  (Un) Subscribe thread alerts  
Subject:Great work overall!
Summary:Package rating comment
Messages:5
Author:Filip Komar
Date:2021-09-15 12:42:06
 

Filip Komar rated this package as follows:

Utility: Good
Consistency: Good
Documentation: Good
Examples: Good

  1. Great work overall!   Reply   Report abuse  
Picture of Filip Komar Filip Komar - 2021-09-15 12:42:07
Great work overall!

  2. Re: Great work overall!   Reply   Report abuse  
Picture of Filip Komar Filip Komar - 2021-09-15 12:54:49 - In reply to message 1 from Filip Komar
A suggestion:
there is no input example and that might be useful.

  3. Re: Great work overall!   Reply   Report abuse  
Picture of Rafael Martin Soto Rafael Martin Soto - 2021-09-15 13:01:16 - In reply to message 2 from Filip Komar
Thanks!!!! The example is in readme file:

<?php
require_once( 'led.class.php' );

// Create the variable with led class on GPIO 18:
$Led18 = new Led( '18' );

// Power ON GPIO led 18:
$Led18->On();

// Wait 5 seconds
sleep(5);

//Power OFF GPIO led 18:
$Led18->Off();

//Unexport GPIO port 18:
$Led18->unexport();
?>

  4. Re: Great work overall!   Reply   Report abuse  
Picture of Filip Komar Filip Komar - 2021-09-15 15:35:18 - In reply to message 3 from Rafael Martin Soto
For driving output ;). But not for reading input.

  5. Re: Great work overall!   Reply   Report abuse  
Picture of Rafael Martin Soto Rafael Martin Soto - 2021-09-15 16:33:39 - In reply to message 4 from Filip Komar
Ok. I'm sorry i did not understand you.

In principle it would not be very difficult looking at the example, but I will look later to prepare something to also read the status of the Led.

Thanks for the observation.