Recoding midi pattern into logic (beginner)

Hi,

I’ve recently bought a elektron digitakt and I can’t get it to record into logic. There’s something that I’m doing wrong but I can’t work out what it is, it’s becoming very frustrating work.

I’ve got a focusrite scarlett-2i4 with the digitakt running in via a TRS audio cable. I’ve got the digitakt set up through logic where when you press start it will automatically start the digitakt and read the tempo. The sequence is coming out of the speakers and being read in logic’s external instrument but. What I’m struggling to do is record the sequence into logic. Would it come through as midi notes? I know I’m not far away from doing this but can anybody help me, please?

I’ve also got a moog sub37, which I have no problems with.

Help!