Arduino Website typo

19/11/2021

Reference Language | Libraries | Comparison | Changes
attachInterrupt()
Description

Digital Pins With Interrupts

scroll down to:

Interrupt numbers

Normally you should use digitalPinToInterrupt(pin), rather than place interrupt an number directly into your sketch. The specific pins with interrupts, and their mapping to interrupt number varies on each type of board. Direct use of interrupt numbers may seem simple, but it can cause compatibility trouble when your sketch is run on a different board.

I think this should read

Interrupt numbers

Normally you should use digitalPinToInterrupt(pin), rather than place an interrupt number directly into your sketch. The specific pins with interrupts, and their mapping to interrupt number varies on each type of board. Direct use of interrupt numbers may seem simple, but it can cause compatibility trouble when your sketch is run on a different board.

Hi @rodedski. Thanks for your attention to the quality of the documentation.

This was corrected 5 years ago:

I'll guess that you found this in the reference that comes with previous versions of the Arduino IDE:

Because it became clear that Arduino was incapable of keeping that bundled reference content up to date, it was removed in the Arduino IDE 1.8.16 release:

So the reference links in the latest Arduino IDE take you to the website, where you will get the modern documentation.


Even though this particular typo happened to be fixed, many others remain. You are welcome to help out with improving the quality of the documentation. The effective way to accomplish that is to submit the fixes directly to the documentation source content. Learn about that in this tutorial: