Is it possible to change or specify the pins used by the pyboard for RX and TX for a UART port? For example, x9 is used as tx and x10 as RX, per default for UART(1). But I'd like to swap this around.
It seems that the machine module in micropython might allow for this. But I could not get this to work on the pyboard 1.1. Perhaps, this is not possible on this particular board? In particular, the following code falis with the error "TypeError: extra keyword arguments given".
Code: Select all
uart = machine.UART(1,baudrate=9600) uart.init(baudrate=9600, bits=8, parity=None, stop=1,tx=machine.Pin('X9'), rx=machine.Pin('X10'))