Hello,
Exactly what behavior are you seeing?
The expected behavior of the example is that it resets the dio subsystem, briefly outputs the expected state, and then resets the dio subsystem back to the default state as the application exits. If you want the outputs to remain set after running the example, you can set the tristateOnExit to kFalse instead of kTrue. However, when the example is run again, it will briefly reset the dio subsystem before outputting the next state that you want.
I would recommend creating a loop in the example so that it doesn't exit until it receives input to exit (and resetting the dio subsystem of the board). This would make the output stay on the port as long as you need it there.
I hope this helps,
Steven T.