Enum pl_io_port_num contains the list of available 8-bit GPIO ports. Use these constants when selecting the port with the io. object (see the io.portnum property).
Note that GPIO lines are of unidirectionaltype and require explicit configuration as outputs or inputs. Some lines are configured as inputs or outputs automatically — see Enum pl_io_num for details.
The EM1202EV-RS board and the DS1202 controller have RS232 transceiver IC onboard. This IC defines which I/O lines of the device should be configured as inputs, and which- as outputs. Specifically, do not try to use I/I lines 0, 2, 4, 6, and 7 as outputs — this can permanently damage the hardware.
Enum pl_io_port_num includes only one constant:
|0- PL_IO_PORT_NUM_0:||8-bit port 0 (P0). Contains I/O lines 0-7.|