Enum pl_io_port_num

Enum pl_io_port_num contains the list of available 8-bit general-purpose I/O (GPIO) ports. Use these constants when selecting the port with the io. object (see the io.portnum property).

Note that GPIO lines are of the unidirectional type and require explicit configuration as outputs or inputs. Some lines are configured as inputs or outputs automatically — see Enum pl_io_num for details.


Enum pl_io_port_num includes the following constants:

0 — PL_IO_PORT_NUM_0:

8-bit port 0 (P0). Contains I/O lines 0-7.

1 — PL_IO_PORT_NUM_1:

8-bit port 1 (P1). Contains I/O lines 8-15.

2 — PL_IO_PORT_NUM_2:

8-bit port 2 (P2). Contains I/O lines 16-23.

3 — PL_IO_PORT_NUM_3:

8-bit port 3 (P3). Contains I/O lines 24-31.

4 — PL_IO_PORT_NUM_4:

8-bit port 4 (P4). Contains I/O lines 32-39.