Skip to content

Commit 8afccac

Browse files
author
SimonePDA
authored
Merge pull request #189 from shroudedcode/patch-1
Improve wording and make formatting consistent
2 parents 32794d3 + 0a08595 commit 8afccac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Language/Functions/Digital IO/digitalWrite.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ subCategories: [ "Digital I/O" ]
2020
=== Description
2121
Write a `HIGH` or a `LOW` value to a digital pin.
2222

23-
If the pin has been configured as an OUTPUT with `pinMode()`, its voltage will be set to the corresponding value: 5V (or 3.3V on 3.3V boards) for `HIGH`, 0V (ground) for `LOW`.
23+
If the pin has been configured as an `OUTPUT` with `pinMode()`, its voltage will be set to the corresponding value: 5V (or 3.3V on 3.3V boards) for `HIGH`, 0V (ground) for `LOW`.
2424
[%hardbreaks]
2525

26-
If the pin is configured as an INPUT, `digitalWrite()` will enable (HIGH) or disable (LOW) the internal pullup on the input pin. It is recommended to set the pinMode() to INPUT_PULLUP to enable the internal pull-up resistor. See the digital pins tutorial for more information.
26+
If the pin is configured as an `INPUT`, `digitalWrite()` will enable (`HIGH`) or disable (`LOW`) the internal pullup on the input pin. It is recommended to set the `pinMode()` to `INPUT_PULLUP` to enable the internal pull-up resistor. See the digital pins tutorial for more information.
2727
[%hardbreaks]
2828

2929
If you do not set the `pinMode()` to `OUTPUT`, and connect an LED to a pin, when calling `digitalWrite(HIGH)`, the LED may appear dim. Without explicitly setting `pinMode()`, `digitalWrite()` will have enabled the internal pull-up resistor, which acts like a large current-limiting resistor.
@@ -57,7 +57,7 @@ Nothing
5757
[float]
5858
=== Example Code
5959
// Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄
60-
The code makes the digital pin 13 `OUTPUT` and Togles it `HIGH` and `LOW`
60+
The code makes the digital pin 13 an `OUTPUT` and toggles it by alternating between `HIGH` and `LOW` at one second pace.
6161

6262
//[source,arduino]
6363
----

0 commit comments

Comments
 (0)