Created
March 1, 2014 06:31
-
-
Save amad/9286131 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
$ 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