0

I'm looking to port some C++ code to the micro:bit and I would like to use the USB-UART capabilities of the board.

My current project uses the nrfx library to set up peripherals such as the UART. I need to know which GPIO are connected to the interface mcu that is providing the USB-UART bridge. I have found the list of pins exposed on the edge connector but they don't include the pins routed to other peripherals.

The microbit-dal describes the MicroBitSerial class but it does not mention which pins are routed to the interface mcu.

nekomatic
  • 5,988
  • 1
  • 20
  • 27
edoput
  • 1,212
  • 9
  • 17

1 Answers1

0

I have found a project where the pin names for the microbit-dal are mapped to the MCU pin.

    // RX AND TX PINS
    TGT_TX = p24,
    TGT_RX = p25,
    ...
    RX_PIN_NUMBER = TGT_RX,
    TX_PIN_NUMBER = TGT_TX,

The pin numbers are correct and I was able to port my project to the microbit. The UART is available through the interface MCU.

edoput
  • 1,212
  • 9
  • 17