Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
839dbc4d
Commit
839dbc4d
authored
Jan 10, 2016
by
devsaurus
Browse files
add uart.alt() from wiki update
parent
4fc088c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/en/modules/uart.md
View file @
839dbc4d
# 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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment