changed logical_id to gpio_id