In general:
* define a high priority task
* call the FB there
* map the digital output of the FB to a GPIO output
That's it 😉
But as you might have read this thread, it seems to only work with one output. Seems like the GPIO driver has problems with multiple outputs.