Helps to send/receive information for an Arduino device or parallels.
MIT License
This tool helps to send/receive information for an Arduino device or parallels, using USB port(initially of course).
Below we have some steps to check and make basic configs to use PHPDuino:
$ ls -la /dev | grep usb
$ sudo chmod 770 /dev/cu.usbmodem1411
$accessPort = "/dev/cu.usbmodem1411";
$objPHPDuino = new \PHPDuino\PHPDuino($accessPort);
$objPHPDuino->sendContentToDevice("Hello");
$accessPort = "/dev/cu.usbmodem1421";
$speedPort = 9600;
$objPHPDuino = new \PHPDuino\PHPDuino($accessPort, $speedPort);
var_dump($objPHPDuino->getContentFromDevice());