Skip to content

Instantly share code, notes, and snippets.

@amad
Created March 1, 2014 06:31
Show Gist options
  • Save amad/9286131 to your computer and use it in GitHub Desktop.
Save amad/9286131 to your computer and use it in GitHub Desktop.
$ stty -F /dev/ttyACM0 cs8 9600 ignbrk -brkint -imaxbel -opost -onlcr -isig\
-icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts
$ screen /dev/ttyACM0 9600
<?php
$fp =fopen("/dev/ttyACM0", "w+");
if( !$fp) {
echo "error";d
die();
}
fwrite($fp, “Hello!”);
fclose($fp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment