Private
Public Access
2
0

docs: added UART examples into Python docs.

Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Alex Tereschenko
2015-12-13 15:57:27 +01:00
committed by Brendan Le Foll
parent f9a31956ab
commit 1947426baf

View File

@@ -71,3 +71,23 @@ fairly simple in use.
:prepend: import mraa
:start-after: import mraa
Uart
====
Uart is the Universal asynchronous receiver/transmitter interface in mraa.
It allows the exposure of UART pins on supported boards, with basic
configuration operations supported.
Here's a simple pair of programs comprising a sender and receiver pair.
Sender:
.. literalinclude:: ../../../examples/python/uart_sender.py
:prepend: import mraa
:start-after: import mraa
Receiver:
.. literalinclude:: ../../../examples/python/uart_receiver.py
:prepend: import mraa
:start-after: import mraa