2017 © Pedro Peláez
 

library shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

image

devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  • Monday, June 4, 2018
  • by nbonniot
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 11 % Grown

The README.md

Shutter

Usage

use Devgiants\MosquittoClientsReactWrapper\Client\MosquittoClientsReactWrapper;
use Devgiants\FilesystemGPIO\Model\Board\Board;
use Devgiants\FilesystemGPIO\Model\GPIO\Logic;
use Devgiants\Shutter\Shutter;

require_once 'vendor/autoload.php';

define('COMPLETE_SHUTTER_MOVEMENT_DURATION', 10);

try {
    $board = Board::create();
    $mqttClient = MosquittoClientsReactWrapper::create( $board->getLoop() );

    // Shutter 1
    $gpo1Open  = $board->registerGPO( 203, Logic::ACTIVE_LOW );
    $gpo1Close = $board->registerGPO( 198, Logic::ACTIVE_LOW );
    $gpi1Open  = $board->registerGPI( 200, Logic::ACTIVE_LOW );
    $gpi1Close = $board->registerGPI( 199, Logic::ACTIVE_LOW );



    $shutter1 = Shutter::create(
        $gpi1Open,
        $gpi1Close,
        $gpo1Open,
        $gpo1Close,
        COMPLETE_SHUTTER_MOVEMENT_DURATION,
        $board->getLoop(),
        $mqttClient,
        'actuator/parent_room/shutter/1'
    );
} catch ( \Exception $exception ) {
    echo "{$exception->getCode()} - {$exception->getMessage()}";
}

The Versions

04/06 2018

dev-master

9999999-dev https://github.com/devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  Sources   Download

MIT

The Requires

 

php iot gpio shutter

04/06 2018

0.0.12

0.0.12.0 https://github.com/devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  Sources   Download

MIT

The Requires

 

php iot gpio shutter

22/05 2018

0.0.11

0.0.11.0 https://github.com/devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  Sources   Download

MIT

The Requires

 

php iot gpio shutter

22/05 2018

0.0.10

0.0.10.0 https://github.com/devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  Sources   Download

MIT

The Requires

 

php iot gpio shutter

21/05 2018

0.0.9

0.0.9.0 https://github.com/devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  Sources   Download

MIT

The Requires

 

php iot gpio shutter

20/05 2018

0.0.8

0.0.8.0 https://github.com/devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  Sources   Download

MIT

The Requires

 

php iot gpio shutter

30/04 2018

0.0.7

0.0.7.0 https://github.com/devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  Sources   Download

MIT

The Requires

 

php iot gpio shutter

30/04 2018

0.0.6

0.0.6.0 https://github.com/devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  Sources   Download

MIT

The Requires

 

php iot gpio shutter

28/04 2018

0.0.5

0.0.5.0 https://github.com/devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  Sources   Download

MIT

The Requires

 

php iot gpio shutter

28/04 2018

0.0.4

0.0.4.0 https://github.com/devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  Sources   Download

MIT

The Requires

 

php iot gpio shutter

28/04 2018

0.0.3

0.0.3.0 https://github.com/devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  Sources   Download

MIT

The Requires

 

php iot gpio shutter

28/04 2018

0.0.2

0.0.2.0 https://github.com/devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  Sources   Download

MIT

The Requires

 

php iot gpio shutter

28/04 2018

0.0.1

0.0.1.0 https://github.com/devgiants/shutter

Represent a shutter composed with GPIO from devgiants/filesystem/gpio

  Sources   Download

MIT

The Requires

 

php iot gpio shutter