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 e660fd9

Browse files
Update serialEvent.adoc
1 parent 83b71f7 commit e660fd9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ title: serialEvent()
1515
[float]
1616
=== Description
1717
Called at the end of link:../../../../structure/sketch/loop[`loop()`] when data is available. Use `Serial.read()` to capture this data.
18+
19+
*Please note:* most modern boards do not support this method. See "Notes and Warnings" further below this article.
1820
[%hardbreaks]
1921

2022

@@ -63,11 +65,9 @@ Nothing
6365

6466
[float]
6567
=== Notes and Warnings
66-
`serialEvent()` doesn't work on the Leonardo, Micro, or Yún.
67-
68-
`serialEvent()` and `serialEvent1()` don't work on the Arduino SAMD Boards
68+
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 chip.
6969

70-
`serialEvent()`, `serialEvent1()`, `serialEvent2()`, and `serialEvent3()` don't work on the Arduino Due.
70+
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.
7171
[%hardbreaks]
7272

7373
--

0 commit comments

Comments
(0)

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