Attaching a physical button to the ROCK64
#1
Hi All,

I have downloaded the package that allows Python and GPIO interaction: https://github.com/mrfixit2001/Rock64-R64.GPIO

I have a button wired to the Ground pin and the pin 18 (https://www.cnx-software.com/wp-content/uploads/2017/08/Rock64-Pi-2-Bus-Pinout.png)
[/url]
so it looks like I am getting errors with my [url=https://pastebin.com/QpP1wgKH]script
(https://pastebin.com/QpP1wgKH).
errors appear after I ctrl-c in terminal, the two errors are:
Error: Unable to get GPIO value
You must setup() the GPIO channel (BCM 18) first

does anyone know what I am doing wrong?
  Reply
#2
take a look at this repo. it's a clone with some changes.
https://github.com/Matei-Ciobotaru/Rock64-R64.GPIO


another thing is you could use GPIO.BOARD instead of GPIO.BCM and maybe for test use value 18 instead of button.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 is unreliable after 3 years of service - power problem? ReleaseTheGeese 1 866 03-24-2025, 06:41 PM
Last Post: arunkhan
Information How to Setup Serial Console Cable Over the Rock64 SBC MarkHaysHarris777 10 37,496 03-24-2025, 06:35 PM
Last Post: arunkhan
  Are HW design files available for ROCK64? irenek 3 6,933 12-11-2023, 09:31 PM
Last Post: tllim
  Rock64 PoE compatbility with Pi4 Hatt recent Single Board Computer offering from PINE kharak 1 1,822 04-26-2023, 11:38 PM
Last Post: tllim
  Case for the rock64 that supports the POE hat. o1CRiMSON1o 0 1,087 03-21-2023, 03:48 PM
Last Post: o1CRiMSON1o
Brick Rock64 usb2.0 Power Control Floating GPIO Tutorial Files & Notes MarkHaysHarris777 6 15,471 01-15-2023, 10:36 AM
Last Post: ds00
  rock64 totally brick dakobg 2 2,755 11-07-2022, 05:45 PM
Last Post: olivercfc
  3D-Printable Button Pegs for the ROCK64 Aluminium Case CounterPillow 2 4,528 08-04-2022, 01:31 AM
Last Post: Vicky Weimann PhD
  Where can I find the ROCK64 POE HAT Zoz 2 3,892 06-08-2022, 12:44 AM
Last Post: Zoz
Smile wooden case for ROCK64 killor 13 19,997 03-04-2022, 06:56 AM
Last Post: killor

Forum Jump:


Users browsing this thread: 1 Guest(s)