We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a1586c + d13a6bc commit 7ad9c70Copy full SHA for 7ad9c70
README.md
@@ -40,10 +40,22 @@ print file_put_contents('arduino://hello Arduino');
40
41
You can use in your project in a OOP style
42
43
+### Sending data
44
+
45
``` php
46
$writer = new Arduino\Writer(new Arduino\Wrapper());
47
$bytes = $writer->out('ttyUSB0', 'from oop');
48
```
49
+### Reading data
50
51
+``` php
52
+$arduino = new \Arduino\Wrapper();
53
54
+$writer = new \Arduino\Reader($arduino);
55
+while (true) {
56
+ print $writer->from('/dev/cu.usbmodem1411');
57
+}
58
+```
59
60
## Improvements
61
0 commit comments