DO write port

 1'''
 2DIO - DO_write_pins.py.
 3
 4This example shows how to write high or low signal to DO port.
 5
 6For other examples please check:
 7    https://github.com/WPC-Systems-Ltd/WPC_Stand-alone_Python_release/tree/main/examples
 8
 9Copyright (c) 2024 WPC Systems Ltd.
10All rights reserved.
11'''
12
13## WPC
14import pywpc
15
16## Parameters setting
17pin_state = [1, 0, 1, 0, 1, 0, 1, 0]
18
19## Write port to high or low
20status = pywpc.DO_writeAllChannels(pin_state)
21print("DO_writeAllChannels status: ", status)