Midi.h MIDIUSB doesn't work for 'write'

You could try using an online MIDI monitor, e.g. https://www.roxxxtar.com/apps/miditool/.