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
Smile wooden case for ROCK64 killor 13 9,528 03-04-2022, 06:56 AM
Last Post: killor
  1wire DS18b20 on Rock64? mypineme 6 2,790 09-28-2021, 03:07 PM
Last Post: TRS-80
Information How to Setup Serial Console Cable Over the Rock64 SBC MarkHaysHarris777 9 24,141 09-28-2021, 10:52 AM
Last Post: lewiscamron72
  Rock64 4K60P HDR Media Board Computer 64 bit MarkHaysHarris777 8 11,784 07-14-2021, 11:52 PM
Last Post: jontumontu
  Any way to tell the rock64's hardware revision? kittyland 1 1,221 07-01-2021, 09:42 PM
Last Post: evilbunny
  Configuring Python GPIO Pin Control Rock64 www139 3 5,068 06-22-2021, 06:57 AM
Last Post: Mrfixit2001
  POE support for the Rock64 v3 h64poe 0 940 05-30-2021, 07:40 AM
Last Post: h64poe
  3D-Printable Button Pegs for the ROCK64 Aluminium Case CounterPillow 1 1,392 05-21-2021, 05:44 PM
Last Post: tllim
  How to enable ES9023-based DAC hat on Rock64? lowry 2 1,747 03-18-2021, 03:44 PM
Last Post: zborgerd
  Recovery button stephen fleming 5 4,779 01-26-2021, 12:33 PM
Last Post: PDXpi

Forum Jump:


Users browsing this thread: 1 Guest(s)