Updated examples to use globals
This commit is contained in:
@ -5,3 +5,7 @@
|
||||
define("LED_A", 0);
|
||||
define("LED_B", 1);
|
||||
define("BTN_A", 2);
|
||||
|
||||
// Pretty exceptions
|
||||
|
||||
NoccyLabs\Crap\Crap::activate();
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__."/../vendor/autoload.php";
|
||||
require_once __DIR__."/GLOBALS.php";
|
||||
|
||||
/*
|
||||
* This example demonstrates mapping GpioPins to bit values and writing bits
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__."/../vendor/autoload.php";
|
||||
require_once __DIR__."/GLOBALS.php";
|
||||
|
||||
use NoccyLabs\Gpio\Gpio;
|
||||
use NoccyLabs\Gpio\GpioMapper\WiringPiMapper;
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__."/../vendor/autoload.php";
|
||||
require_once __DIR__."/GLOBALS.php";
|
||||
|
||||
use NoccyLabs\Gpio\GpioMapper\WiringPiMapper;
|
||||
use NoccyLabs\Gpio\Exception\GpioException;
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__."/../vendor/autoload.php";
|
||||
require_once __DIR__."/GLOBALS.php";
|
||||
|
||||
/*
|
||||
* This example demonstrates using a 4-button wireless remote control with the
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__."/../vendor/autoload.php";
|
||||
require_once __DIR__."/GLOBALS.php";
|
||||
|
||||
/*
|
||||
* This example demonstrate a possibility, but not a best practice. When using
|
||||
|
Reference in New Issue
Block a user