Duplex CallBacks

Hello people,
Is there a way to created a type of button in duplex which sends a value to the midi controller?
I have a launchpad X and the only way to light up the button being pressed triggers a callback to send a note to launchpad.

Is this achievable using duplex?