OPi.GPIO
OPi.GPIO copied to clipboard
Support for Pull up / Pull down resistors
Pull request #8 added faux-compatibility for pull up/down resistors by adding an optional parameter, so that existing code doesn't break. This issue is a placeholder to add real support for pull-up/down resistors.
Related (originating) issue: #6
As I understand, the sysfs interface does not support dynamic configuration of internal pull-up/down resistors. So an Allwinner-specific solution is necessary, just like Raspberry Pi has Broadcom-specific solutions.
- The Allwinner-specific
sunxiinterface supports this, but you have to access the system memory directly. Is it compatible withsysfsinterface? - Another option seems to be writing DTS overlays (like on RPi) and rebooting each time. But it seems this is not yet supported (
/boot/dtb-4.13.8-sunxi/overlay/README.sun8i-h3-overlays)? - A similar Allwinner-specific solution are Fex Guide GPIO configuration and rebooting each time?
I've found a DTS that enables internal pullup, not sure if it can be used. https://github.com/armbian/sunxi-DT-overlays/blob/master/examples/gpio-button.dts