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.
1 parent db8b79b commit 7b9b055Copy full SHA for 7b9b055
README.md
@@ -17,7 +17,7 @@ print fread($resource, 1024);
17
18
Or if you prefer, you can use **file_get_contents** and get the same result
19
``` php
20
-print file_get_contents('arduinno://ttyUSB0');
+print file_get_contents('arduino://ttyUSB0');
21
```
22
23
To write data in the Arduino serial is as easy as it could be
@@ -36,6 +36,15 @@ print fwrite('hello Arduino');
36
print file_put_contents('arduino://hello Arduino');
37
38
39
+## OOP
40
+
41
+You can use in your project in a OOP style
42
43
+``` php
44
+$writer = new Arduino\Writer(new Arduino\Wrapper());
45
+$bytes = $writer->out('ttyUSB0', 'from oop');
46
+```
47
48
## Improvements
49
50
As you can see is really simple and we can improve it much more as the sensors are identified
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments