Created
August 30, 2018 10:11
-
-
Save erikaheidi/a89469172debb51f6169509168f845c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'vendor/autoload.php'; | |
use PiPHP\GPIO\GPIO; | |
use PiPHP\GPIO\Pin\PinInterface; | |
$gpio = new GPIO(); | |
$pin = $gpio->getOutputPin(19); | |
while (true) { | |
$pin->setValue(PinInterface::VALUE_HIGH); | |
sleep(1); | |
$pin->setValue(PinInterface::VALUE_LOW); | |
sleep(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment