Ah good catch, we never actaully added a PD example for Flex specifically. We will amend this shortly but in the meantime here is an example which will print touch position and size values for up to 5 touches. This is to be used with the default sensor which comes with Trill Flex.
https://patchstorage.com/trill-flex-with-default-sensor/
This example is just like the Bar example but I've just updated the initialisation section to use a FLEX sensor instead of BAR. Will this do for your application?