GPIO_RI
if (pinfo->gpios[GPIO_RI]) {
if (!gpiod_get_value(pinfo->gpios[GPIO_RI]))
#define NUM_GPIOS (GPIO_RI+1)