From 6d01f447989927b774d93006da589ed6445cb2ae Mon Sep 17 00:00:00 2001 From: Niklas Higi Date: Mon, 6 Nov 2017 21:03:35 +0100 Subject: [PATCH 1/2] Improve wording and make formatting consistent --- Language/Functions/Digital IO/digitalWrite.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Language/Functions/Digital IO/digitalWrite.adoc b/Language/Functions/Digital IO/digitalWrite.adoc index 464dca4fe..807ac3995 100644 --- a/Language/Functions/Digital IO/digitalWrite.adoc +++ b/Language/Functions/Digital IO/digitalWrite.adoc @@ -20,10 +20,10 @@ subCategories: [ "Digital I/O" ] === Description Write a `HIGH` or a `LOW` value to a digital pin. -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`. +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`. [%hardbreaks] -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. +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. [%hardbreaks] 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 [float] === Example Code // Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄ -The code makes the digital pin 13 `OUTPUT` and Togles it `HIGH` and `LOW` +The code makes the digital pin 13 an `OUTPUT` and toggles it by alternating between `HIGH` and `LOW`. //[source,arduino] ---- From 0a08595066011284422ec6b1821c5eec72838827 Mon Sep 17 00:00:00 2001 From: SimonePDA Date: Fri, 10 Nov 2017 12:39:15 +0100 Subject: [PATCH 2/2] Update digitalWrite.adoc A small change in the last sentence before the code. The proposed text changes are OK. --- Language/Functions/Digital IO/digitalWrite.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Language/Functions/Digital IO/digitalWrite.adoc b/Language/Functions/Digital IO/digitalWrite.adoc index 807ac3995..fd7be905d 100644 --- a/Language/Functions/Digital IO/digitalWrite.adoc +++ b/Language/Functions/Digital IO/digitalWrite.adoc @@ -57,7 +57,7 @@ Nothing [float] === Example Code // Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄ -The code makes the digital pin 13 an `OUTPUT` and toggles it by alternating between `HIGH` and `LOW`. +The code makes the digital pin 13 an `OUTPUT` and toggles it by alternating between `HIGH` and `LOW` at one second pace. //[source,arduino] ----