From 553bc3a2f388599252544d3749b7f6f29f7c2b22 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 17 Jul 2022 13:39:59 -0700 Subject: [PATCH 1/2] Correct variable name reference in "Writing a Library for Arduino" The text description of the library's origin sketch incorrectly references a variable named `ledPin`. That sketch, and all following code based on it uses the variable name `pin`. The incorrect variable name in the description is hereby changed to match the real variable name in the code. --- .../arduino-creating-library-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/learn/08.contributions/03.arduino-creating-library-guide/arduino-creating-library-guide.md b/content/learn/08.contributions/03.arduino-creating-library-guide/arduino-creating-library-guide.md index 2741548701..5536646d80 100644 --- a/content/learn/08.contributions/03.arduino-creating-library-guide/arduino-creating-library-guide.md +++ b/content/learn/08.contributions/03.arduino-creating-library-guide/arduino-creating-library-guide.md @@ -48,7 +48,7 @@ void dash() If you run this sketch, it will flash out the code for SOS (a distress call) on pin 13. -The sketch has a few different parts that we'll need to bring into our library. First, of course, we have the `dot()` and `dash()` functions that do the actual blinking. Second, there's the **ledPin** variable which the functions use to determine which pin to use. Finally, there's the call to `pinMode()` that initializes the pin as an output. +The sketch has a few different parts that we'll need to bring into our library. First, of course, we have the `dot()` and `dash()` functions that do the actual blinking. Second, there's the **pin** variable which the functions use to determine which pin to use. Finally, there's the call to `pinMode()` that initializes the pin as an output. Let's start turning the sketch into a library! From 915e81fc812f4f87937cd51b5eedd4ede903e592 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 17 Jul 2022 14:27:21 -0700 Subject: [PATCH 2/2] Use correct markup on variable name reference in "Writing a Library for Arduino" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pablo Marquínez Ferrándiz --- .../arduino-creating-library-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/learn/08.contributions/03.arduino-creating-library-guide/arduino-creating-library-guide.md b/content/learn/08.contributions/03.arduino-creating-library-guide/arduino-creating-library-guide.md index 5536646d80..c497765f18 100644 --- a/content/learn/08.contributions/03.arduino-creating-library-guide/arduino-creating-library-guide.md +++ b/content/learn/08.contributions/03.arduino-creating-library-guide/arduino-creating-library-guide.md @@ -48,7 +48,7 @@ void dash() If you run this sketch, it will flash out the code for SOS (a distress call) on pin 13. -The sketch has a few different parts that we'll need to bring into our library. First, of course, we have the `dot()` and `dash()` functions that do the actual blinking. Second, there's the **pin** variable which the functions use to determine which pin to use. Finally, there's the call to `pinMode()` that initializes the pin as an output. +The sketch has a few different parts that we'll need to bring into our library. First, of course, we have the `dot()` and `dash()` functions that do the actual blinking. Second, there's the `pin` variable which the functions use to determine which pin to use. Finally, there's the call to `pinMode()` that initializes the pin as an output. Let's start turning the sketch into a library!