fhunleth / elixir_ale

Interact with hardware in Elixir - GPIOs, I2C and SPI
Apache License 2.0
344 stars 44 forks source link

make it possible to configure pull up or pull down resistor #59

Closed tcoopman closed 6 years ago

tcoopman commented 6 years ago

As far as I can see, it's not possible to configure a GPIO input as pull down or pull up resistor. Can you make this possible?

fhunleth commented 6 years ago

This is frustratingly platform-dependent and has required writing memory mapped registers behind the Linux kernel's back. I'll look at the current state of affairs with Linux for Elixir ALE 2.0, but in the mean time, check out https://github.com/Hermanverschooten/gpio_rpi.

fhunleth commented 6 years ago

We're addressing pull up/pull down support in https://github.com/elixir-circuits/circuits_gpio.