My sketch freeze

Can you give an example, how to do ?? I pretty new into this programming...

Anyways thanks for help :slight_smile: