08-29-2016, 05:04 PM
(This post was last modified: 08-29-2016, 06:26 PM by MarkHaysHarris777.)
hi, I just did some testing with Pine GPIO68 [ pin 32, GPIO12 ] ...
... again, try using 0x44 in your C code ( the hex number for GPIO 68 ). I verified that GPIO68 works well for IN | OUT , defaults to 0 , and drives standard LED brightly with the normal 330 ohm limiting resistor. I have my LED plugged into the lab board at GPIO12, on pin(32); however, I'm driving the output with sysfs using Pine GPIO68 !
The following code is a bash script that will blink the Pine GPIO68 [ pin 32, GPIO12 ] line seven times:
Put the script in a file, chmod it with 0754, and run with sudo ./blink.sh
blink.sh
hope this helps you
... again, try using 0x44 in your C code ( the hex number for GPIO 68 ). I verified that GPIO68 works well for IN | OUT , defaults to 0 , and drives standard LED brightly with the normal 330 ohm limiting resistor. I have my LED plugged into the lab board at GPIO12, on pin(32); however, I'm driving the output with sysfs using Pine GPIO68 !
The following code is a bash script that will blink the Pine GPIO68 [ pin 32, GPIO12 ] line seven times:
Put the script in a file, chmod it with 0754, and run with sudo ./blink.sh
blink.sh
Code:
#!/bin/sh
echo 68 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio68/direction
for i in `seq 1 7`
do
echo 1 > /sys/class/gpio/gpio68/value
sleep .35
echo 0 > /sys/class/gpio/gpio68/value
sleep .65
done
echo 68 > /sys/class/gpio/unexport
hope this helps you
marcushh777
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )