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

Commits on Jun 5, 2019

  1. machuart.c: Add option to invert the UART signals

    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 committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    54f669a View commit details
    Browse the repository at this point in the history