diff options
Diffstat (limited to 'docs/source/lang')
-rw-r--r-- | docs/source/lang/api/random.rst | 3 | ||||
-rw-r--r-- | docs/source/lang/api/randomseed.rst | 3 | ||||
-rw-r--r-- | docs/source/lang/cpp/goto.rst | 2 | ||||
-rw-r--r-- | docs/source/lang/cpp/scope.rst | 5 |
4 files changed, 5 insertions, 8 deletions
diff --git a/docs/source/lang/api/random.rst b/docs/source/lang/api/random.rst index 9875ee6..42b0112 100644 --- a/docs/source/lang/api/random.rst +++ b/docs/source/lang/api/random.rst @@ -46,8 +46,7 @@ Example The following sketch initializes the random seed based on an :ref:`ADC <adc>` reading of pin 0. If this pin is unconnected, the Sketch -should print different values to the :ref:`serial monitor -<ide-serial-monitor>` each time it is run:: +should print different values to the serial port monitor each time it is run:: long randNumber; diff --git a/docs/source/lang/api/randomseed.rst b/docs/source/lang/api/randomseed.rst index ca7b75f..86a4088 100644 --- a/docs/source/lang/api/randomseed.rst +++ b/docs/source/lang/api/randomseed.rst @@ -35,8 +35,7 @@ Example The following sketch initializes the random seed based on an :ref:`ADC <adc>` reading of pin 0. If this pin is unconnected, the Sketch -should print different values to the :ref:`serial monitor -<ide-serial-monitor>` each time it is run:: +should print different values to the serial port monitor each time it is run:: long randNumber; diff --git a/docs/source/lang/cpp/goto.rst b/docs/source/lang/cpp/goto.rst index 2c0b3b0..73dce80 100644 --- a/docs/source/lang/cpp/goto.rst +++ b/docs/source/lang/cpp/goto.rst @@ -44,7 +44,7 @@ be a label. Let's say that we wanted to print ``x`` only if it was very large, say at least 2000. We might want to do this just so anybody watching on a -:ref:`serial monitor <ide-serial-monitor>` would know they were in for +serial port monitor would know they were in for a longer wait than usual. We can accomplish this through the use of a ``goto`` statement that skips the printing if ``x`` is less than 2000:: diff --git a/docs/source/lang/cpp/scope.rst b/docs/source/lang/cpp/scope.rst index a270428..20e139f 100644 --- a/docs/source/lang/cpp/scope.rst +++ b/docs/source/lang/cpp/scope.rst @@ -19,7 +19,7 @@ Global and Local Variables -------------------------- A global variable is one that can be "seen" by every function in a -program. In the :ref:`Maple IDE <ide>`, any variable declared outside +program. In Wirish, any variable declared outside of a function (like :ref:`setup() <lang-setup>` and :ref:`loop() <lang-loop>`) is a global variable. @@ -43,8 +43,7 @@ Example Here is an example sketch (which you can copy into the Maple IDE and run on your Maple) that illustrates the use of global and local variables, as well as declaring variables inside of a ``for`` loop. -Be sure to open a :ref:`serial monitor <ide-serial-monitor>` after you -:ref:`verify <ide-verify>` and :ref:`upload <ide-upload>` the sketch:: +Be sure to open a serial port monitor after you upload the sketch:: int globalVar; // any function will see this variable |