I try to read the S3-Key press on board with Debian loaded.
I am using following code and it works for other GPIO (e.g. GPIO12) control
except the “107” which is suppose to be the S3-Key.
I checked the “/sys/class/gpio” on board and do not see the “GPIO107” created
Is this because it is used by other application ?
int Export_GPIO(int gpio)
//Export the specific GPIO //this will create a new folder with the gpio name sprintf(buf, "%d", gpio); fd = open("/sys/class/gpio/export", O_WRONLY); if(fd < 0) return -1; write(fd, buf, strlen(buf)); close(fd); return 0;