Using GPIO pins
#2
Are you running under root ?
Try it from bash under root user.
Code:
# cd /sys/class/gpio
# ### chose pin to use - pinheader pin 11 == GPIO1_C6 == should be CPU pin 54 (1*32+2*8+6)
# echo 54 > export
# ls gpio54
active_low  device  direction  edge  power  subsystem  uevent  value
# echo out > gpio54/direction
# echo 0 > gpio54/value
# echo 1 > gpio54/value
# echo 0 > gpio54/value
# echo 1 > gpio54/value
# echo in > gpio54/direction
# cat gpio54/value
# echo 54 > unexport
I left this community in Aug 2019 due to PINE64 refusal to produce/deliver ROCK64-1G version 3 after more than one year of changing statuses to "planning", "evaluating", "releasing", "availability", "estimated availability" and finally "no schedule" Angry. ROCK64 is dead platform without any advantage. Buy Raspberry PI 4 !
Away
  Reply


Messages In This Thread
Using GPIO pins - by smartdave - 08-17-2018, 12:22 PM
RE: Using GPIO pins - by mcerveny - 08-19-2018, 11:14 AM
RE: Using GPIO pins - by smartdave - 08-19-2018, 06:24 PM
RE: Using GPIO pins - by mcerveny - 08-20-2018, 07:52 AM
RE: Using GPIO pins - by smartdave - 08-20-2018, 08:03 AM
RE: Using GPIO pins - by smartdave - 08-21-2018, 04:12 PM
RE: Using GPIO pins - by Bullet64 - 09-20-2018, 04:53 AM
RE: Using GPIO pins - by smartdave - 09-20-2018, 05:42 AM
RE: Using GPIO pins - by Bullet64 - 09-20-2018, 06:05 AM
RE: Using GPIO pins - by Bullet64 - 09-20-2018, 07:27 AM
RE: Using GPIO pins - by Mrfixit2001 - 10-03-2018, 11:55 AM
RE: Using GPIO pins - by Bullet64 - 10-03-2018, 12:46 PM
RE: Using GPIO pins - by {-DesT-} - 02-08-2021, 01:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  setting permissions on gpio baraqiyal 0 1,343 08-16-2022, 11:37 AM
Last Post: baraqiyal
  No Hardware Interrupts for GPIO pantera 2 5,319 05-08-2021, 10:16 AM
Last Post: Badger
  RockPro64 Fan Pins TheUnknownMuncher 7 11,441 11-14-2019, 04:06 AM
Last Post: vecnar
  SPI support in GPIO mr_rabbit 2 4,807 07-21-2019, 11:42 PM
Last Post: Wom the Bat
  DSI connector is 30 pins NOT 32 ( be aware) AmroIb 3 5,463 05-25-2019, 06:15 AM
Last Post: dukla2000
  UART pins and settings for ROCKPRO64 frewind 2 5,637 07-27-2018, 03:25 PM
Last Post: frewind

Forum Jump:


Users browsing this thread: 1 Guest(s)