I’m having trouble getting gpio 4 5 45 46 working. They measure 3.3v 3.3v 3.3v 0.0v
cd /sys/class/gpio echo 4 > export echo out > gpio4/direction echo 0 > gpio4/value echo 46 > export echo out > gpio46/direction echo 0 > gpio46/value
Changing “value” between 0 and 1 has no effect on gpio. They always read 3.3v 3.3v 3.3v 0.0v.
It seems that the pins 4 and 5 are held by i2c. Pins 45 46 are held by uart1(ttyS1). How do I release the i2c and uart1(ttyS1) to be able to use the pins for gpio? I eventually want to run a 1wire bus on these pins but I’m 1st trying to get them to respond to regular gpio.