2 Replies Latest reply on Feb 20, 2017 6:09 AM by Bill.

    How to query GPIO Multiplexing configuration




      The following pages talk about GPIO Pin Multiplexing:






      Question: is there a way to query/display what is already in /sys/class/gpio, etc, before using the echo commands to change things?




        • 1. Re: How to query GPIO Multiplexing configuration
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hi Bill,

          Thanks for your interest in the Intel® Edison Platform.

          I was thinking how you could display all the GPIO configuration before using the echo command to change them, and you could create a script that query all the GPIO configurations, for example:

          • Create the script
          vi script.sh
          • Make your script
          echo <description>
          cat /sys/class/gpio
          cat /sys/class/gpio/gpio<pin#>/direction
          cat /sys/kernel/debug/gpio_debug/gpio<pin#>/current_pinmux
          • Set up permission on a Script
          chmod u+x script.sh

          This might give you an idea to create the script and customize it to meet your needs.

          Hope this information helps, also, if you have any other question, don’t hesitate to contact us back.

          Have a nice day!

          -Yermi A.

          • 2. Re: How to query GPIO Multiplexing configuration

            Hi Yermi,


            Thanks for the information. It is so easy. I should have figured t out myself