circuits_gpio
circuits_gpio copied to clipboard
switching an gpio from input to output results in a lot off errors before it fails.
trafficstars
As discussed on slack:
I've just set a gpio to output that I had earlier set as input and get this:
00:09:11.921 [error] [ 551.918389] gpio-17 (sysfs): _gpiod_direction_output_raw: tried to set a GPIO tied to an IRQ as output
00:09:11.940 [error] [ 551.940243] gpio-17 (sysfs): _gpiod_direction_output_raw: tried to set a GPIO tied to an IRQ as output
for some seconds before I get a matcherror:
** (MatchError) no match of right hand side value: {:error, :error_setting_direction}