05-30-2016, 10:20 AM
(This post was last modified: 05-30-2016, 10:23 AM by martinayotte.)
@adamw,
Doing some searches, I found out the cause of the issue : since awhile, the pin numbering scheme in /sys/class/gpio has changed !
See : http://linux-sunxi.org/GPIO#Accessing_th...ine_kernel
Also, here on the forum :
http://forum.pine64.org/showthread.php?t...00#pid4000
On Pine64, the GPIO17 is attached to PC7, so, for the /sys/class/gpio, the numbering would be :
You can now give it a try with :
Doing some searches, I found out the cause of the issue : since awhile, the pin numbering scheme in /sys/class/gpio has changed !
See : http://linux-sunxi.org/GPIO#Accessing_th...ine_kernel
Also, here on the forum :
http://forum.pine64.org/showthread.php?t...00#pid4000
On Pine64, the GPIO17 is attached to PC7, so, for the /sys/class/gpio, the numbering would be :
Code:
('C' - 'A') * 32 + 7
or
2 * 32 + 7 = 71
You can now give it a try with :
Code:
echo "71" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio71/direction
echo 1 > /sys/class/gpio/gpio71/value