Using GPIO pins
#4
Oh, no. Not this way. "#" indicate interactive root prompt (but comment in scripts). Your way:
Code:
rock64@rockpro64:~/gpio$ sudo bash
root@rockpro64:~# cd /sys/class/gpio
root@rockpro64:/sys/class/gpio# echo 54 > export
root@rockpro64:/sys/class/gpio# ls gpio54
active_low  device  direction  edge  power  subsystem  uevent  value
root@rockpro64:/sys/class/gpio# echo out > gpio54/direction
root@rockpro64:/sys/class/gpio# echo 0 > gpio54/value
root@rockpro64:/sys/class/gpio# echo 1 > gpio54/value
...
This was write "interactively" so you can check pin with voltmeter or simple low power LED diode (something like this but diode on pin 11 on pinheader (marked as BCM_cpu_pin_17 in demo link, demo link uses BCM_cpu_pin_18 (pin 12 on pinheader))) ... some learning path before you.
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,108 08-16-2022, 11:37 AM
Last Post: baraqiyal
  No Hardware Interrupts for GPIO pantera 2 4,771 05-08-2021, 10:16 AM
Last Post: Badger
  RockPro64 Fan Pins TheUnknownMuncher 7 10,208 11-14-2019, 04:06 AM
Last Post: vecnar
  SPI support in GPIO mr_rabbit 2 4,261 07-21-2019, 11:42 PM
Last Post: Wom the Bat
  DSI connector is 30 pins NOT 32 ( be aware) AmroIb 3 4,880 05-25-2019, 06:15 AM
Last Post: dukla2000
  UART pins and settings for ROCKPRO64 frewind 2 5,134 07-27-2018, 03:25 PM
Last Post: frewind

Forum Jump:


Users browsing this thread: 1 Guest(s)