The old "one function per config" system is depricated for quite a while now...
This example blinks LED1 on the WaveShare Open103R eval board.
When you press the 'USER' button, the blinking is slower.