sorry, didn't check your request in detail. But: did you have a look at MRAA (intel-iot-devkit/mraa · GitHub) which supports Intel Edison Arduino breakout board as well as the mini breakout board?
With that you can abstract away the GPIO sysfs details.
1 of 1 people found this helpful
I've just tested only the gpio27 and the gpio129. Initially I was not able to change the value of gpio27, but I was able to change the value of gpio129 without any problem.
The problem seems to be the mode the GPIO is set. I checked the initial mode of gpio27 and it was mode2. The initial mode of gpio129 was mode0. In order to use the pins as GPIO, they should be set in mode0. Probably in your case, the gpio129 is set in a mode different to mode0, but in my case the gpio129 was already in mode0 so I didn't have problems to change its value.
To check the current mode the GPIO is set, and to change it, you can use the following commands:
cat /sys/kernel/debug/gpio_debug/gpioXX/current_pinmux # To check the current mode echo modeX > /sys/kernel/debug/gpio_debug/gpioXX/current_pinmux # To set the current mode
So, to change the value of gpio27 I used the following commands:
echo 27 > /sys/class/gpio/export # J17 - pin7 echo mode0 > /sys/kernel/debug/gpio_debug/gpio27/current_pinmux # Set the pin to GPIO mode echo out > /sys/class/gpio/gpio27/direction # Set the gpio pin as output echo 0 > /sys/class/gpio/gpio27/value # Change the value to low
Please try to change the mode of the GPIOs to mode0. Probably the GPIOs that you were able to change are in mode0 by default.
Thank you DiegoV_Intel for looking on to my post and giving me valuable solution. This will help me in my long run of my project.
is there any online sources which provides the information about intel edison and related stuff?
Once again thank you for being very resourceful and also i would like to get more input from you related to this. Hopefully you never mind .
Thank you in advance.
All the resources available for Edison can be found in the following links:
- Downloads and Documentation: Getting the Most out of your Board
- Intel® Edison and Intel® Galileo Forums and Support
- Intel® Edison Boards and Compute Modules — Software Downloads