Closed pojiro closed 2 years ago
I confirmed below, also works
iex(3)> cmd "echo 26 > /sys/class/gpio/export"
0
iex(4)> cmd "echo in > /sys/class/gpio/gpio26/direction"
0
iex(5)> cmd "cat /sys/class/gpio/gpio26/value"
0
0
iex(6)> cmd "cat /sys/class/gpio/gpio26/value"
1
0
Once a version containing https://github.com/elixir-circuits/circuits_gpio/pull/119 is released, this issue is fixed.
https://github.com/elixir-circuits/circuits_gpio/releases/tag/v1.0.1, includes above fix, is released. Now we can close this, yey!
what a fantastic contribution!!
In below code, GPIO pin 26 is D18 of Grove Base Hat for Raspberry Pi.
This doesn't happen with debian which boots with same kernel and same dtb.
So, this might be a contribution chance to circuits_gpio.