Skip to content

Instantly share code, notes, and snippets.

@ricardoreis
Created October 1, 2018 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricardoreis/92ab9cc0711a81ce7796a463943e5891 to your computer and use it in GitHub Desktop.
Save ricardoreis/92ab9cc0711a81ce7796a463943e5891 to your computer and use it in GitHub Desktop.
<?php
$setmode17 = shell_exec("/usr/local/bin/gpio -g mode 17 out");
$gpio_on = shell_exec("/usr/local/bin/gpio -g write 17 1");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment