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

machuart.c: Add an option to invert the UART signals #310

Closed
wants to merge 1 commit into from

Conversation

robert-hh
Copy link
Contributor

The option is called inverse_mask. Possible bits are:

UART.INVERSE_RXD
UART.INVERSE_TXD
UART.INVERSE_RTS
UART.INVERSE_CTS

These bits can be OR'ed. Example:

from machine import UART
uart=UART(1, inverse_mask=UART.INVERSE_RXD | UART.INVERSE_TXD)

The option is called inverse_mask. Possible bits are:

UART.INVERSE_RXD
UART.INVERSE_TXD
UART.INVERSE_RTS
UART.INVERSE_CTS

These bits can be OR'ed. Example:

from machine import UART
uart=UART(1, inverse_mask=UART.INVERSE_RXD | UART.INVERSE_TXD)
@robert-hh robert-hh changed the title machuart.c: Add option to invert the UART signals machuart.c: Add an option to invert the UART signals Jun 10, 2019
@robert-hh robert-hh closed this Oct 7, 2019
@robert-hh robert-hh deleted the uart_inverse branch October 7, 2019 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant