add uart.alt() from wiki update

This commit is contained in:
devsaurus 2016-01-10 21:49:42 +01:00
parent 4fc088c88c
commit 839dbc4dd6
1 changed files with 14 additions and 0 deletions

View File

@ -1,6 +1,20 @@
# UART Module
The [UART](https://en.wikipedia.org/wiki/Universal_asynchronous_receiver/transmitter) (Universal asynchronous receiver/transmitter) module allows configuration of and communication over the UART serial port.
## uart.alt()
Change UART pin assignment.
#### Syntax
`uart.alt(on)`
#### Parameters
`on`:
- `0` use standard pins
- `1` use alternate pins GPIO13 and GPIO15
#### Returns
`nil`
## uart.on()
Sets the callback function to handle UART events.