You can just plug a MIDI controller in the USB-A port that is on the board. This should show up as hw:1,0,0on Bela.
Additionally, Bela shows up as a MIDI interface on you computer (through the USB cable you normally use to connect to it), so you could also send MIDI from/to your computer. This interface is hw:0,0,0 on Bela.
You can get a list of all connected MIDI devices by running amidi -l in the console at the bottom of the Bela IDE. The interface hw:1,0,0 is the one that Pd on Bela automatically attaches to, but you can also tell it to connect tohw:0,0,0, or any other one, by following the instructions in the PD hello-midi example, i.e.: by adding the following to the patch:
[loadbang]
|
[hw 0 0 0(
|
[s bela_setMidi]