You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Language/Functions/Communication/Serial/serialEvent.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ void serialEvent() {
30
30
}
31
31
----
32
32
33
-
The Mega 2560 R3 has additional serial ports which can be accessed by adding the corresponding number at the end of the function.
33
+
The Mega 2560 R3 and Due boards have additional serial ports which can be accessed by adding the corresponding number at the end of the function.
34
34
35
35
[source,arduino]
36
36
----
@@ -67,9 +67,9 @@ Nothing
67
67
68
68
[float]
69
69
=== Notes and Warnings
70
-
Please note that `serialEvent()` *does not work* on any modern Arduino boards. The only recognized boards to have support as of 2023年12月06日 is the *UNO R3* and *Mega 2560 R3*, which are based on the ATmega328P and ATmega2560 chips.
70
+
Please note that `serialEvent()` *does not work* on any modern Arduino boards. The only recognized boards to have support as of 2023年12月06日 is the *UNO R3*, *Mega 2560 R3*and *Due*.
71
71
72
-
Instead, you can use the link:../available[`available()`] method. Examples in this page demonstrates how to read serial data only when it is available, which is exactly what `Serial.event()` does.
72
+
Instead, you can use the link:../available[`available()`] method. Examples in this page demonstrates how to read serial data only when it is available, similarly to how `Serial.event()` is implemented.
0 commit comments