I am using a Teensy 2 and want to to get MIDI In from a 5 pin DIN.
I am using a 6N138 based circuit, instead of a PC900 like recommended here: https://www.pjrc.com/teensy/td_libs_MIDI.html
I am getting unexpected values on my MIDI in port, they seem shuffled.
Could the 6N138 be the reason for the unpredictable results?

(I know I am supposed to follow the recommendations, but I was previously using a 6N138 with a Teensy LC, which was working fine, and I am having troubles finding a PC900 for SMT, so I wanted to give the 6N138 a try).