Instantly share code, notes, and snippets.

What would you like to do?
Ussing OmegaPHP.php
require 'OmegaPHP.php'; //Require Our Library You can get at
$gpio = new OmegaPHP();
//Turns pin 0 to On or HIGH or 1
$pin = (int)0; //This is just for my testing purposes You do not have to cast to an int.
$gpio->SetPIN($pin,HIGH);// Set's the pin to 1 or HIGH
$returned = $gpio->ReadPin($pin);
// Prints to screen:
// 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment