SHARE
TWEET

control.php

digitalfx Mar 8th, 2011 1,838 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. sleep(1);
  3. $c1 = $_GET['command'];
  4. $fp = fopen("/dev/ttyACM0", "w");
  5. fwrite($fp, chr($c1));
  6. fclose($fp);
  7. ?>
  8. <!--Redirect user back to control main page -->
  9. <meta http-equiv="refresh" content="0;url=index.php">
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top