Read function button
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
15
16print("Start reading function button status")
17while (pywpc.Sys_readFuncButton() == 1):
18 time.sleep(1)
19 print("Push FUNC button to leave loop")
20
21print("End code")