Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 553bc3a

Browse files
authored
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.
1 parent 8942978 commit 553bc3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎content/learn/08.contributions/03.arduino-creating-library-guide/arduino-creating-library-guide.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void dash()
4848

4949
If you run this sketch, it will flash out the code for SOS (a distress call) on pin 13.
5050

51-
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.
51+
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.
5252

5353
Let's start turning the sketch into a library!
5454

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /