1
0
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:
William Woodall 2012-07-09 15:51:38 -05:00
parent 667eedeb2f
commit c5a2d7b4bc

View File

@ -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());
* } * }