I'm trying to get a simple button input to GPIO working, with a particular program I'm using, which uses a cut down version of Debian Stretch. For reference the program is QLC+ 4.12.1 on a RPi 3 B+, but cannot get the pull up resistor to pull up.
I have a switch attached to pin 12, GPIO 18, via a resistor to 0V. The switch works, if testing using a non QLC+ install. On the non QLC+ install (Pi Presents on a standard Raspian install) I can put a meter on pin 12, and see that the pin is pulled up.
On the QLC+ install, I am setting the pull up resistor, by entering this:
After entering this, I would expect the input to be pulled high, but putting a meter on it, the pin is not.
Code: Select all
echo 18 > /sys/class/gpio/export echo in > /sys/class/gpio/gpio18/direction echo 1 > /sys/class/gpio/gpio18/active_low
I know there are other ways of doing this, but 1) I would like to know why this specifically is not working, and 2) This will be the most convenient way of configuring QLC+
I'm obviously missing a bit of configuration, but unsure what it is.
Any help would be appreciated.