docs/machine.UART: Deconditionalize normal methods.
This commit is contained in:
parent
ac8843ceec
commit
a8ece0358f
|
@ -69,15 +69,14 @@ Methods
|
||||||
When no pins are given, then the default set of TX and RX pins is taken, and hardware
|
When no pins are given, then the default set of TX and RX pins is taken, and hardware
|
||||||
flow control will be disabled. If pins=None, no pin assignment will be made.
|
flow control will be disabled. If pins=None, no pin assignment will be made.
|
||||||
|
|
||||||
.. only:: not port_esp8266
|
.. method:: UART.deinit()
|
||||||
|
|
||||||
.. method:: UART.deinit()
|
Turn off the UART bus.
|
||||||
|
|
||||||
Turn off the UART bus.
|
.. method:: UART.any()
|
||||||
|
|
||||||
.. method:: UART.any()
|
Return true value if there're characters available for reading. On some
|
||||||
|
boards, the number of available characters is returned.
|
||||||
Return the number of characters available for reading.
|
|
||||||
|
|
||||||
.. method:: UART.read([nbytes])
|
.. method:: UART.read([nbytes])
|
||||||
|
|
||||||
|
@ -107,13 +106,10 @@ Methods
|
||||||
|
|
||||||
Return value: number of bytes written or ``None`` on timeout.
|
Return value: number of bytes written or ``None`` on timeout.
|
||||||
|
|
||||||
.. only:: not port_esp8266
|
.. method:: UART.sendbreak()
|
||||||
|
|
||||||
.. method:: UART.sendbreak()
|
Send a break condition on the bus. This drives the bus low for a duration
|
||||||
|
longer than required for a normal transmission of a character.
|
||||||
Send a break condition on the bus. This drives the bus low for a duration
|
|
||||||
of 13 bits.
|
|
||||||
Return value: ``None``.
|
|
||||||
|
|
||||||
.. only:: port_wipy
|
.. only:: port_wipy
|
||||||
|
|
||||||
|
@ -140,8 +136,6 @@ Methods
|
||||||
|
|
||||||
Returns an irq object.
|
Returns an irq object.
|
||||||
|
|
||||||
.. only:: not port_esp8266
|
|
||||||
|
|
||||||
Constants
|
Constants
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue