From ef7bbe5aa61c17a59ac34c5520c0ecaa6b44748e Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sun, 30 Oct 2016 02:09:08 +0300 Subject: [PATCH] Typo fix --- docs/ide/cloud9.rst | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/ide/cloud9.rst b/docs/ide/cloud9.rst index d7fc6370..c2117886 100644 --- a/docs/ide/cloud9.rst +++ b/docs/ide/cloud9.rst @@ -50,7 +50,7 @@ Integration .. code-block:: bash - sudo python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/develop/scripts/get-platformio.py)" + sudo python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/develop/scripts/get-platformio.py)" .. image:: ../_static/ide/cloud9/ide-cloud9-install-pio-cli.png @@ -65,12 +65,12 @@ Let's create our first PlatformIO-based Cloud9 Project 1. Initialize new PlatformIO-based Project. Run a next command in Cloud IDE Terminal: -.. code-block:: bash + .. code-block:: bash - platformio init --board + platformio init --board - # initialize project for Arduino Uno - platformio init --board uno + # initialize project for Arduino Uno + platformio init --board uno To get board ``ID`` please use :ref:`cmd_boards` command or `Embedded Boards Explorer `_. @@ -79,27 +79,27 @@ Let's create our first PlatformIO-based Cloud9 Project Project Tree (left side). Please make right click on ``src`` folder, then "New File" and insert a next content: -.. code-block:: c + .. code-block:: c - #include + #include - int i = 0; + int i = 0; - void setup() { - Serial.begin(9600); - Serial.println("Hello Cloud9!"); - } - - void loop() { - /* serial echo */ - while (Serial.available()) { - Serial.write(Serial.read()); + void setup() { + Serial.begin(9600); + Serial.println("Hello Cloud9!"); } - i++; - Serial.println(i); - delay(100); - } + void loop() { + /* serial echo */ + while (Serial.available()) { + Serial.write(Serial.read()); + } + + i++; + Serial.println(i); + delay(100); + } .. image:: ../_static/ide/cloud9/ide-cloud9-init-project.png