Skip to content

Commit

Permalink
Describe noInterrupts disabling USB handshakes (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
beyarkay authored Sep 3, 2022
1 parent f7296fb commit f6a8d7d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Language/Functions/Interrupts/noInterrupts.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ subCategories: [ "Interrupts" ]

[float]
=== Description
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.
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.
[%hardbreaks]


Expand Down Expand Up @@ -61,6 +61,13 @@ void loop() {
// other code here
}
----
[%hardbreaks]


[float]
=== Notes and Warnings
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
not appear in the Port menu, since this disables its USB capability.

--
// HOW TO USE SECTION ENDS
Expand Down

0 comments on commit f6a8d7d

Please sign in to comment.