Updated examples to use globals
This commit is contained in:
parent
8d95654840
commit
75d6df400e
@ -9,7 +9,10 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"noccylabs/sansi": "dev-master"
|
||||
},
|
||||
"require-dev": {
|
||||
"noccylabs/sansi": "dev-master",
|
||||
"noccylabs/crap": "dev-master"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
37
composer.lock
generated
37
composer.lock
generated
@ -4,8 +4,37 @@
|
||||
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"hash": "6ede4cbc5ab4ef05b58811c306b5376f",
|
||||
"hash": "f8730bf5cb8eaf8085a06df386769d3a",
|
||||
"packages": [
|
||||
|
||||
],
|
||||
"packages-dev": [
|
||||
{
|
||||
"name": "noccylabs/crap",
|
||||
"version": "dev-master",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "http://satis.noccylabs.info/packages/php-crap.git",
|
||||
"reference": "846708ec6f1b6c53dd95871d19590557675ed026"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"NoccyLabs\\Crap\\": "lib/"
|
||||
}
|
||||
},
|
||||
"license": [
|
||||
"GPL-3.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Christopher Vagnetoft",
|
||||
"email": "cvagnetoft@gmail.com"
|
||||
}
|
||||
],
|
||||
"description": "Crap is an exception/error/assertion handling library",
|
||||
"time": "2014-06-13 22:18:38"
|
||||
},
|
||||
{
|
||||
"name": "noccylabs/sansi",
|
||||
"version": "dev-master",
|
||||
@ -32,16 +61,14 @@
|
||||
"description": "Simple ANSI User Interface",
|
||||
"time": "2014-06-05 12:10:14"
|
||||
}
|
||||
],
|
||||
"packages-dev": [
|
||||
|
||||
],
|
||||
"aliases": [
|
||||
|
||||
],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": {
|
||||
"noccylabs/sansi": 20
|
||||
"noccylabs/sansi": 20,
|
||||
"noccylabs/crap": 20
|
||||
},
|
||||
"platform": [
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user