1'''
2Button - read_function_button.py.
3
4This example demonstrates how to read function button status
5
6For other examples please check:
7 https://github.com/WPC-Systems-Ltd/WPC_Stand-alone_Python_release/tree/main/examples
8
9Copyright (c) 2025 WPC Systems Ltd.
10All rights reserved.
11'''
12
13## WPC
14import pywpc
15import time
16
17print("Start reading function button status")
18while (pywpc.Sys_readFuncButton() == 1):
19 time.sleep(1)
20 print("Push FUNC button to leave loop")
21
22print("End code")