summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Neal <jason.neal@astro.up.pt>2020-01-02 00:51:42 +1300
committerDamien George <damien.p.george@gmail.com>2020-01-06 22:17:29 +1100
commitaec88ddf0326187c567d4e4507149fb7c54ba91d (patch)
tree03a2a1d36fb893b213a327df53f88a941dfb88f1
parentde78a9e317d3dd3654424ea70446dedbae9cce52 (diff)
docs: More consistent capitalization and use of articles in headings.
See issue #3188.
-rw-r--r--docs/develop/cmodules.rst2
-rw-r--r--docs/esp32/quickref.rst2
-rw-r--r--docs/library/esp32.rst4
-rw-r--r--docs/library/framebuf.rst2
-rw-r--r--docs/pyboard/tutorial/switch.rst4
-rw-r--r--docs/reference/asm_thumb2_directives.rst2
-rw-r--r--docs/reference/asm_thumb2_float.rst6
-rw-r--r--docs/reference/asm_thumb2_index.rst4
-rw-r--r--docs/reference/asm_thumb2_logical_bit.rst2
-rw-r--r--docs/reference/constrained.rst14
-rw-r--r--docs/reference/index.rst4
-rw-r--r--docs/reference/isr_rules.rst8
-rw-r--r--docs/reference/repl.rst6
-rw-r--r--docs/reference/speed_python.rst6
14 files changed, 33 insertions, 33 deletions
diff --git a/docs/develop/cmodules.rst b/docs/develop/cmodules.rst
index a4c473347..e616adad0 100644
--- a/docs/develop/cmodules.rst
+++ b/docs/develop/cmodules.rst
@@ -54,7 +54,7 @@ A MicroPython user C module is a directory with the following files:
See below for full usage example.
-Basic Example
+Basic example
-------------
This simple module named ``example`` provides a single function
diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst
index cfe31664e..c58f4aa76 100644
--- a/docs/esp32/quickref.rst
+++ b/docs/esp32/quickref.rst
@@ -435,7 +435,7 @@ For low-level driving of a NeoPixel::
``NeoPixel`` object.
-Capacitive Touch
+Capacitive touch
----------------
Use the ``TouchPad`` class in the ``machine`` module::
diff --git a/docs/library/esp32.rst b/docs/library/esp32.rst
index 467af0ff0..5df1f3c93 100644
--- a/docs/library/esp32.rst
+++ b/docs/library/esp32.rst
@@ -173,8 +173,8 @@ For more details see Espressif's `ESP-IDF RMT documentation.
stream starts at 0 or 1.
-The Ultra-Low-Power co-processor
---------------------------------
+Ultra-Low-Power co-processor
+----------------------------
.. class:: ULP()
diff --git a/docs/library/framebuf.rst b/docs/library/framebuf.rst
index b6d7dba5d..1ff56e4da 100644
--- a/docs/library/framebuf.rst
+++ b/docs/library/framebuf.rst
@@ -1,4 +1,4 @@
-:mod:`framebuf` --- Frame buffer manipulation
+:mod:`framebuf` --- frame buffer manipulation
=============================================
.. module:: framebuf
diff --git a/docs/pyboard/tutorial/switch.rst b/docs/pyboard/tutorial/switch.rst
index e2a5eae88..96bb3784e 100644
--- a/docs/pyboard/tutorial/switch.rst
+++ b/docs/pyboard/tutorial/switch.rst
@@ -1,7 +1,7 @@
.. _pyboard_tutorial_switch:
-The Switch, callbacks and interrupts
-====================================
+Switches, callbacks and interrupts
+==================================
The pyboard has 2 small switches, labelled USR and RST. The RST switch
is a hard-reset switch, and if you press it then it restarts the pyboard
diff --git a/docs/reference/asm_thumb2_directives.rst b/docs/reference/asm_thumb2_directives.rst
index 95acd7781..6e3ddaa16 100644
--- a/docs/reference/asm_thumb2_directives.rst
+++ b/docs/reference/asm_thumb2_directives.rst
@@ -1,4 +1,4 @@
-Assembler Directives
+Assembler directives
====================
Labels
diff --git a/docs/reference/asm_thumb2_float.rst b/docs/reference/asm_thumb2_float.rst
index 46560413c..4672c4b27 100644
--- a/docs/reference/asm_thumb2_float.rst
+++ b/docs/reference/asm_thumb2_float.rst
@@ -1,5 +1,5 @@
-Floating Point instructions
-==============================
+Floating point instructions
+===========================
These instructions support the use of the ARM floating point coprocessor
(on platforms such as the Pyboard which are equipped with one). The FPU
@@ -61,7 +61,7 @@ Where ``[Rn + offset]`` denotes the memory address obtained by adding Rn to the
is specified in bytes. Since each float value occupies a 32 bit word, when accessing arrays of
floats the offset must always be a multiple of four bytes.
-Data Comparison
+Data comparison
---------------
* vcmp(Sd, Sm)
diff --git a/docs/reference/asm_thumb2_index.rst b/docs/reference/asm_thumb2_index.rst
index f066e6ace..ccf020148 100644
--- a/docs/reference/asm_thumb2_index.rst
+++ b/docs/reference/asm_thumb2_index.rst
@@ -1,6 +1,6 @@
.. _asm_thumb2_index:
-Inline Assembler for Thumb2 architectures
+Inline assembler for Thumb2 architectures
=========================================
This document assumes some familiarity with assembly language programming and should be read after studying
@@ -25,7 +25,7 @@ This enables the effect of instructions to be demonstrated in Python. In certain
because Python doesn't support concepts such as indirection. The pseudocode employed in such cases is
described on the relevant page.
-Instruction Categories
+Instruction categories
----------------------
The following sections details the subset of the ARM Thumb-2 instruction set supported by MicroPython.
diff --git a/docs/reference/asm_thumb2_logical_bit.rst b/docs/reference/asm_thumb2_logical_bit.rst
index 8c51feaf4..c57bfa847 100644
--- a/docs/reference/asm_thumb2_logical_bit.rst
+++ b/docs/reference/asm_thumb2_logical_bit.rst
@@ -1,4 +1,4 @@
-Logical & Bitwise instructions
+Logical & bitwise instructions
==============================
Document conventions
diff --git a/docs/reference/constrained.rst b/docs/reference/constrained.rst
index edac0ae68..9c68bab9a 100644
--- a/docs/reference/constrained.rst
+++ b/docs/reference/constrained.rst
@@ -1,6 +1,6 @@
.. _constrained:
-MicroPython on Microcontrollers
+MicroPython on microcontrollers
===============================
MicroPython is designed to be capable of running on microcontrollers. These
@@ -12,7 +12,7 @@ based on a variety of architectures, the methods presented are generic: in some
cases it will be necessary to obtain detailed information from platform specific
documentation.
-Flash Memory
+Flash memory
------------
On the Pyboard the simple way to address the limited capacity is to fit a micro
@@ -58,7 +58,7 @@ heap fragmentation. In general terms it is best to minimise the repeated
creation and destruction of objects. The reason for this is covered in the
section covering the `heap`_.
-Compilation Phase
+Compilation phase
~~~~~~~~~~~~~~~~~
When a module is imported, MicroPython compiles the code to bytecode which is
@@ -85,7 +85,7 @@ imported in the usual way. Alternatively some or all modules may be implemented
as frozen bytecode: on most platforms this saves even more RAM as the bytecode
is run directly from flash rather than being stored in RAM.
-Execution Phase
+Execution phase
~~~~~~~~~~~~~~~
There are a number of coding techniques for reducing RAM usage.
@@ -292,7 +292,7 @@ The Q(xxx) lines should be gone.
.. _heap:
-The Heap
+The heap
--------
When a running program instantiates an object the necessary RAM is allocated
@@ -391,7 +391,7 @@ Symbol Meaning
Each letter represents a single block of memory, a block being 16 bytes. So each
line of the heap dump represents 0x400 bytes or 1KiB of RAM.
-Control of Garbage Collection
+Control of garbage collection
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A GC can be demanded at any time by issuing `gc.collect()`. It is advantageous
@@ -420,7 +420,7 @@ initialisation the compiler may be starved of RAM when subsequent modules are
imported. If modules do instantiate data on import then `gc.collect()` issued
after the import will ameliorate the problem.
-String Operations
+String operations
-----------------
MicroPython handles strings in an efficient manner and understanding this can
diff --git a/docs/reference/index.rst b/docs/reference/index.rst
index ed50bf0bf..8cd5f03df 100644
--- a/docs/reference/index.rst
+++ b/docs/reference/index.rst
@@ -1,5 +1,5 @@
-The MicroPython language
-========================
+MicroPython language and implementation
+=======================================
MicroPython aims to implement the Python 3.4 standard (with selected
features from later versions) with respect to language syntax, and most
diff --git a/docs/reference/isr_rules.rst b/docs/reference/isr_rules.rst
index dfdee048c..57690ac21 100644
--- a/docs/reference/isr_rules.rst
+++ b/docs/reference/isr_rules.rst
@@ -29,7 +29,7 @@ This summarises the points detailed below and lists the principal recommendation
* Allocate an emergency exception buffer (see below).
-MicroPython Issues
+MicroPython issues
------------------
The emergency exception buffer
@@ -214,7 +214,7 @@ Exceptions
If an ISR raises an exception it will not propagate to the main loop. The interrupt will be disabled unless the
exception is handled by the ISR code.
-General Issues
+General issues
--------------
This is merely a brief introduction to the subject of real time programming. Beginners should note
@@ -225,7 +225,7 @@ with an appreciation of the following issues.
.. _ISR:
-Interrupt Handler Design
+Interrupt handler design
~~~~~~~~~~~~~~~~~~~~~~~~
As mentioned above, ISR's should be designed to be as simple as possible. They should always return in a short,
@@ -276,7 +276,7 @@ advanced topic beyond the scope of this tutorial.
.. _Critical:
-Critical Sections
+Critical sections
~~~~~~~~~~~~~~~~~
An example of a critical section of code is one which accesses more than one variable which can be affected by an ISR. If
diff --git a/docs/reference/repl.rst b/docs/reference/repl.rst
index 0c6f04b7c..06ba91811 100644
--- a/docs/reference/repl.rst
+++ b/docs/reference/repl.rst
@@ -103,7 +103,7 @@ For example:
KeyboardInterrupt:
>>>
-Paste Mode
+Paste mode
----------
If you want to paste some code into your terminal window, the auto-indent feature
@@ -143,7 +143,7 @@ the auto-indent feature, and changes the prompt from ``>>>`` to ``===``. For exa
Paste Mode allows blank lines to be pasted. The pasted text is compiled as if
it were a file. Pressing Ctrl-D exits paste mode and initiates the compilation.
-Soft Reset
+Soft reset
----------
A soft reset will reset the python interpreter, but tries not to reset the
@@ -196,7 +196,7 @@ So you can use the underscore to save the result in a variable. For example:
15
>>>
-Raw Mode
+Raw mode
--------
Raw mode is not something that a person would normally use. It is intended for
diff --git a/docs/reference/speed_python.rst b/docs/reference/speed_python.rst
index a6951ed33..aa9777859 100644
--- a/docs/reference/speed_python.rst
+++ b/docs/reference/speed_python.rst
@@ -1,6 +1,6 @@
.. _speed_python:
-Maximising MicroPython Speed
+Maximising MicroPython speed
============================
.. contents::
@@ -40,7 +40,7 @@ the best algorithm is employed. This is a topic for textbooks rather than for a
MicroPython guide but spectacular performance gains can sometimes be achieved
by adopting algorithms known for their efficiency.
-RAM Allocation
+RAM allocation
~~~~~~~~~~~~~~
To design efficient MicroPython code it is necessary to have an understanding of the
@@ -69,7 +69,7 @@ example, objects which support stream interface (e.g., file or UART) provide ``r
method which allocates new buffer for read data, but also a ``readinto()`` method
to read data into an existing buffer.
-Floating Point
+Floating point
~~~~~~~~~~~~~~
Some MicroPython ports allocate floating point numbers on heap. Some other ports