Private
Public Access
2
0

python: include examples page for sphinx documentation that links to src examples

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-05-20 15:39:58 +01:00
parent 7abd8f5529
commit 521b6817d7
4 changed files with 32 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
#######
Example
#######
Here are some examples of how to use pymaa, common convention is to import pymaa as maa to keep it short but feel free to import it globally!
Hello GPIO
==========
Here is the simplest Gpio program in pymaa.
.. literalinclude:: ../../../examples/python/hello_gpio.py
:prepend: import pymaa
:start-after: import pymaa
GPIO Interupt (isr)
===================
The GPIO module allows you to set an interupt on a GPIO. This interupt is controlled by the mode that the 'edge' is in.
**Note:** Galileo Gen1 only supports EDGE_BOTH
.. literalinclude:: ../../../examples/python/hello_isr.py
:prepend: import pymaa as maa
:start-after: import pymaa as maa

View File

@@ -9,9 +9,10 @@ Welcome to Pymaa's documentation!
Contents:
.. toctree::
:maxdepth: 4
:maxdepth: 2
pymaa
example
Indices and tables