From cb72aadd73e6cf0daea239abc8a0756f4b1c5925 Mon Sep 17 00:00:00 2001 From: Boyd Kane <33420535+beyarkay@users.noreply.github.com> Date: Wed, 29 Jun 2022 14:37:46 +0200 Subject: [PATCH 1/3] Describe `noInterrupts` disabling USB handshakes --- Language/Functions/Interrupts/noInterrupts.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Language/Functions/Interrupts/noInterrupts.adoc b/Language/Functions/Interrupts/noInterrupts.adoc index c7e413dba..e3eb81336 100644 --- a/Language/Functions/Interrupts/noInterrupts.adoc +++ b/Language/Functions/Interrupts/noInterrupts.adoc @@ -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. Note that disabling interrupts on the Arduino Nano 3.3v BLE will make the board not appear in the Ports tab, since this disables its ability to respond to USB handshakes (see https://arduino.stackexchange.com/a/90045/83235[this answer^]) [%hardbreaks] From a3c1af652db49dbf27f51ff5297c53420d510f31 Mon Sep 17 00:00:00 2001 From: beyarkay Date: Mon, 15 Aug 2022 12:05:16 +0200 Subject: [PATCH 2/3] Move warning to 'notes and warnings' --- Language/Functions/Interrupts/noInterrupts.adoc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Language/Functions/Interrupts/noInterrupts.adoc b/Language/Functions/Interrupts/noInterrupts.adoc index e3eb81336..1857bc953 100644 --- a/Language/Functions/Interrupts/noInterrupts.adoc +++ b/Language/Functions/Interrupts/noInterrupts.adoc @@ -17,7 +17,7 @@ subCategories: [ "Interrupts" ] [float] === Description -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. Note that disabling interrupts on the Arduino Nano 3.3v BLE will make the board not appear in the Ports tab, since this disables its ability to respond to USB handshakes (see https://arduino.stackexchange.com/a/90045/83235[this answer^]) +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] @@ -61,6 +61,14 @@ void loop() { // other code here } ---- +[%hardbreaks] + + +[float] +=== Notes and Warnings +Note that disabling interrupts on the Arduino Nano 3.3v BLE will make the board +not appear in the Ports tab, since this disables its ability to respond to USB +handshakes (see https://arduino.stackexchange.com/a/90045/83235[this answer^]) -- // HOW TO USE SECTION ENDS From 6dc42f9c91efb6cb42bc7e6f42a9c54fd0067ce6 Mon Sep 17 00:00:00 2001 From: Boyd Kane <33420535+beyarkay@users.noreply.github.com> Date: Sat, 3 Sep 2022 12:29:28 +0200 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: per1234 --- Language/Functions/Interrupts/noInterrupts.adoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Language/Functions/Interrupts/noInterrupts.adoc b/Language/Functions/Interrupts/noInterrupts.adoc index 1857bc953..b925094d7 100644 --- a/Language/Functions/Interrupts/noInterrupts.adoc +++ b/Language/Functions/Interrupts/noInterrupts.adoc @@ -66,9 +66,8 @@ void loop() { [float] === Notes and Warnings -Note that disabling interrupts on the Arduino Nano 3.3v BLE will make the board -not appear in the Ports tab, since this disables its ability to respond to USB -handshakes (see https://arduino.stackexchange.com/a/90045/83235[this answer^]) +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