Skip to content

Commit 8be2f7b

Browse files
committed
Changes according to the PR review
1 parent e1cdbd7 commit 8be2f7b

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

Diff for: docs/source/tutorials/blink.rst

+15-13
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,27 @@ Introduction
77

88
This is the interactive blink tutorial using `Wokwi`_. For this tutorial, you don't need the ESP32 board or the Arduino toolchain.
99

10-
.. note:: If you don't want to use this tutorial with the simulation, you can copy and paste the :ref:`blink_example_code` from `Wokwi`_ editor and use on the Arduino IDE or PlatformIO.
10+
.. note:: If you don't want to use this tutorial with the simulation, you can copy and paste the :ref:`blink_example_code` from `Wokwi`_ editor and use it on the `Arduino IDE`_ or `PlatformIO`_.
1111

1212
About this Tutorial
1313
-------------------
1414

15-
This tutorial is the most basic for any getting started. In this tutorial, we will show how to set a GPIO pin as output to drive a LED to blink each 1 second.
15+
This tutorial is the most basic for any get started. In this tutorial, we will show how to set a GPIO pin as an output to drive a LED to blink each 1 second.
1616

1717
Step by step
1818
------------
1919

2020
In order to make this simple blink tutorial, you'll need to do the following steps.
2121

22-
1. Define the GPIO for the LED.
22+
1. **Define the GPIO for the LED.**
2323

2424
.. code-block::
2525
2626
#define LED 2
2727
2828
This ``#define LED 2`` will be used to set the GPIO2 as the ``LED`` output pin.
2929

30-
2. Setup.
30+
2. **Setup.**
3131

3232
Inside the ``setup()`` function, we need to add all things we want to run once during the startup.
3333
Here we'll add the ``pinMode`` function to set the pin as output.
@@ -38,9 +38,9 @@ Here we'll add the ``pinMode`` function to set the pin as output.
3838
pinMode(LED, OUTPUT);
3939
}
4040
41-
The first argument is the GPIO number, already defined and the second is the mode, here defined as output.
41+
The first argument is the GPIO number, already defined and the second is the mode, here defined as an output.
4242

43-
3. Main Loop.
43+
3. **Main Loop.**
4444

4545
After the ``setup``, the code runs the ``loop`` function infinitely. Here we will handle the GPIO in order to get the LED blinking.
4646

@@ -56,28 +56,28 @@ After the ``setup``, the code runs the ``loop`` function infinitely. Here we wil
5656
The first function is the ``digitalWrite()`` with two arguments:
5757

5858
* GPIO: Set the GPIO pin. Here defined by our ``LED`` connected to the GPIO2.
59-
* State: Set the GPIO state as HIGH (on) or LOW (off).
59+
* State: Set the GPIO state as HIGH (ON) or LOW (OFF).
6060

61-
This first ``digitalWrite`` we will set the LED on.
61+
This first ``digitalWrite`` we will set the LED ON.
6262

6363
After the ``digitalWrite``, we will set a ``delay`` function in order to wait for some time, defined in milliseconds.
6464

6565
Now we can set the GPIO to ``LOW`` to turn the LED off and ``delay`` for more few milliseconds to get the LED blinking.
6666

67-
4. Run the code.
67+
4. **Run the code.**
6868

69-
To run this code, you'll need a development board and the Arduino toolchain installed in your computer. If you don't have both, you can use the simulator to test and edit the code.
69+
To run this code, you'll need a development board and the Arduino toolchain installed on your computer. If you don't have both, you can use the simulator to test and edit the code.
7070

7171
Simulation
7272
----------
7373

74-
This simulator is provided by `Wokwi`_ and you can test the blink code and play with some modification to learn mode about this example.
74+
This simulator is provided by `Wokwi`_ and you can test the blink code and play with some modifications to learn more about this example.
7575

7676
.. raw:: html
7777

7878
<iframe src="https://wokwi.com/arduino/projects/305566932847821378?embed=1" width="100%" height="400" border="0"></iframe>
7979

80-
Change the parameters, like the delay period, to test the code right on your browser. You can add more LEDs, change the GPIO and more.
80+
Change the parameters, like the delay period, to test the code right on your browser. You can add more LEDs, change the GPIO, and more.
8181

8282
.. _blink_example_code:
8383

@@ -108,4 +108,6 @@ Resources
108108
* `Wokwi`_ (Wokwi Website)
109109

110110
.. _ESP32 Datasheet: https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf
111-
.. _Wokwi: https://wokwi.com/
111+
.. _Wokwi: https://wokwi.com/
112+
.. _PlatformIO: https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#platformio
113+
.. _Arduino IDE: https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#installing-using-boards-manager

0 commit comments

Comments
 (0)