Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant