Enum pl_io_num

Top  Previous  Next

Enum pl_io_num contains the list of constants that refer to available GPIO lines. Use these constants when selecting the line with the io. object (see the io.num property).

Note that GPIO lines are of bidirectional type and do not require explicit configuration as outputs or inputs.


Enum pl_io_num includes the following constants:

0- PL_IO_NUM_0_INT0:General-purpose I/O line 0 (P0.0). This is also the interrupt line 0.
1- PL_IO_NUM_1_INT1:General-purpose I/O line 1 (P0.1). This is also the interrupt line 1.
2- PL_IO_NUM_2:General-purpose I/O line 2 (P0.2).
3- PL_IO_NUM_3:General-purpose I/O line 3 (P0.3).
4- PL_IO_NUM_4:General-purpose I/O line 4 (P0.4).
5- PL_IO_NUM_5:General-purpose I/O line 5 (P0.5).
6- PL_IO_NUM_6:General-purpose I/O line 6 (P0.6).
7- PL_IO_NUM_7:General-purpose I/O line 7 (P0.7).
8- PL_IO_NULL:This is a NULL line that does not physically exist. The state of this line is always detected as LOW. Setting this line has no effect.