Rich Neese Posted September 28, 2017 Share Posted September 28, 2017 Here is a easier way to do gpio setup/teardown To setup , chmod +x armbian_gpio_up and gpio_down put the scripts armbian_gpio_up and armbian_gpio_down in /usr/sbin put armbian_gpio.conf /etc In the armbian_gpio.conf you just have to put the pin numbers as follows # Space separated list of GPIO pins that point IN and have an # Active HIGH state (3.3v = ON, 0v = OFF) GPIO_IN_HIGH="10 12 27" on the lines you need for high/low/in/out. Then run armbian_gpio_up to setup the gpio pins, and run armbian_gpio_down to teardown the gpio. Then run armbian_gpio_up to setup the gpio pins, and run armbian_gpio_down to teardown the gpio. armbian_gpio_up armbian_gpio.conf armbian_gpio_down whiptail_gpio_config.sh Link to comment Share on other sites More sharing options...
Recommended Posts