Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit baf515d

Browse files
Merge pull request #952 from arduino/karlsoderby/add-due-serialevent
SerialEvent() update (add Due)
2 parents 1a84777 + 6b28b9d commit baf515d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎Language/Functions/Communication/Serial/serialEvent.adoc‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void serialEvent() {
3030
}
3131
----
3232

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.
3434

3535
[source,arduino]
3636
----
@@ -67,9 +67,9 @@ Nothing
6767

6868
[float]
6969
=== 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*.
7171

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.
7373
[%hardbreaks]
7474

7575
--

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /