Attach a custom component (switch, knob, sensor, anything) to FrSKY Taranis X9D

Is it possible to attach a custom component to the Taranis X9D in order to send its output to the receiver via the transmitter?
Goal: I’d like to attach a gyro in order to control the onboard camera/gimbal.

I think you’re thinking in a wrong way.
Imagine that you can connect something to the TR. For what ?
You have a lot of free channels on X9D. Use them to do it with a receiver on the plane.
Custom componentes allways on the plane not on the transmitter.