Raspberry Pi: how to enable / disable built-in pullups of GPIOs ?

how to enable built-in pullups (or pull-downs) of GPIOs ?



  • Hi davenull,

    There's currently no good way to enabled pull-ups or pull-downs, in a general (i.e. not Pi-specific) way. Other libraries poke /dev/mem (bad), or the custom /dev/gpiomem (only slightly less bad), but we're hoping to convince the kernel maintainers to add this functionality in a portable way, that will also work on future hardware.

    Short version: it's a known omission currently. If this is something you want to be able to do earlier, you could try to extend the IO library to mess with /dev/gpiomem.

    Best gohai

Sign In or Register to comment.