GPIO_NUM_MAX

Constant GPIO_NUM_MAX 

Source
pub const GPIO_NUM_MAX: usize = 22;
Available on crate feature unstable and (esp32 or esp32s2 or esp32s3 or esp32c3 or esp32c6 or esp32c2) only.
Expand description

Maximum number of GPIO pins supported.