Before, gpio_toggle relied on gpio_read which is inefficient and does not work with GPIOs configured as outputs.