gpio: make gpiod_direction_output take a logical value