Activate GPIO Donwlink message lorawan?

Hello, can someone provide me with a code to activate the gpio 1 with a downlink message by lorawan? no matter how much I see and try with the example, I can’t understand it