Skip to content

Add a read-the-gpio-value function #22

Open

Description

@ronanguilloux
No description provided.

Activity

  1. Tjoosten commented on May 8, 2015

    @Tjoosten
    /**
     * Read pin value.
     * 
     * @param int, $pinNo
     * @return bool|string
      */
     public function readValuePin($pinNo) {
         if (!$this->isValidPin($pinNo)) {
             return false;
         }
    
         return trim(file_get_contents(GpioInterface::PATH_GPIO.$pinNo.'/value'));
    }

    in this way?

  2. Tjoosten commented on Jul 25, 2015

    @Tjoosten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions