Skip to content

Commit f6a8d7d

Browse files
authored
Describe noInterrupts disabling USB handshakes (#891)
1 parent f7296fb commit f6a8d7d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Language/Functions/Interrupts/noInterrupts.adoc

+8-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ subCategories: [ "Interrupts" ]
1717

1818
[float]
1919
=== Description
20-
Disables interrupts (you can re-enable them with `interrupts()`). Interrupts allow certain important tasks to happen in the background and are enabled by default. Some functions will not work while interrupts are disabled, and incoming communication may be ignored. Interrupts can slightly disrupt the timing of code, however, and may be disabled for particularly critical sections of code.
20+
Disables interrupts (you can re-enable them with link:../interrupts[`interrupts()`]). Interrupts allow certain important tasks to happen in the background and are enabled by default. Some functions will not work while interrupts are disabled, and incoming communication may be ignored. Interrupts can slightly disrupt the timing of code, however, and may be disabled for particularly critical sections of code.
2121
[%hardbreaks]
2222

2323

@@ -61,6 +61,13 @@ void loop() {
6161
// other code here
6262
}
6363
----
64+
[%hardbreaks]
65+
66+
67+
[float]
68+
=== Notes and Warnings
69+
Note that disabling interrupts on the Arduino boards with native USB capabilities (e.g., link:https://docs.arduino.cc/hardware/leonardo[Leonardo^]) will make the board
70+
not appear in the Port menu, since this disables its USB capability.
6471

6572
--
6673
// HOW TO USE SECTION ENDS

0 commit comments

Comments
 (0)