Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose UART 1 #1934

Merged
merged 2 commits into from
Apr 24, 2017
Merged

Expose UART 1 #1934

merged 2 commits into from
Apr 24, 2017

Conversation

dnc40085
Copy link
Contributor

Fixes #1907 .

  • This PR is for the dev branch rather than for master.
  • This PR is compliant with the other contributing guidelines as well (if not, please describe why).
  • I have thoroughly tested my contribution.
  • The code changes are reflected in the documentation at docs/en/*.

The ESP8266 has two hardware UARTs available, unfortunately the second UART is transmit only due to the fact that the receive pin is shared with one of the flash data lines (SD_D1 to be specific), the UART 1 Tx pin however is unused and available for use.

@devsaurus devsaurus added this to the 2.0.0-follow-up milestone Apr 24, 2017
@devsaurus devsaurus merged commit 9dbae1c into nodemcu:dev Apr 24, 2017
@dnc40085 dnc40085 deleted the dev_expose_uart_1 branch April 24, 2017 22:25
@codingdaikai
Copy link

hi dnc40085,
can you use UART1 TX to output debug log?
I send command uart.setup(1, 115200, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1) to nodemcu,but it still can not output anything.

@dnc40085
Copy link
Contributor Author

Hello @CAPTAIN888888,
UART 1 can be written to with uart.write(1, "Hello, world\n")

eiselekd pushed a commit to eiselekd/nodemcu-firmware that referenced this pull request Jan 7, 2018
* Expose UART 1 and update uart module documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants