mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
Adding void return type for Arduino example in examples/serial_example.cc. Fixes #20
This commit is contained in:
parent
667eedeb2f
commit
c5a2d7b4bc
@ -4,11 +4,11 @@
|
|||||||
* Alternatively, you could use an Arduino:
|
* Alternatively, you could use an Arduino:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* setup() {
|
* void setup() {
|
||||||
* Serial.begin(<insert your baudrate here>);
|
* Serial.begin(<insert your baudrate here>);
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* loop() {
|
* void loop() {
|
||||||
* if (Serial.available()) {
|
* if (Serial.available()) {
|
||||||
* Serial.write(Serial.read());
|
* Serial.write(Serial.read());
|
||||||
* }
|
* }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user