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
  1wire DS18b20 on Rock64? mypineme 4 1,791 07-17-2021, 04:20 AM
Last Post: Rocky64
  Rock64 4K60P HDR Media Board Computer 64 bit MarkHaysHarris777 8 8,184 07-14-2021, 11:52 PM
Last Post: jontumontu
  Any way to tell the rock64's hardware revision? kittyland 1 181 07-01-2021, 09:42 PM
Last Post: evilbunny
  Configuring Python GPIO Pin Control Rock64 www139 3 3,467 06-22-2021, 06:57 AM
Last Post: Mrfixit2001
  POE support for the Rock64 v3 h64poe 0 224 05-30-2021, 07:40 AM
Last Post: h64poe
  3D-Printable Button Pegs for the ROCK64 Aluminium Case CounterPillow 1 368 05-21-2021, 05:44 PM
Last Post: tllim
  How to enable ES9023-based DAC hat on Rock64? lowry 2 604 03-18-2021, 03:44 PM
Last Post: zborgerd
  Recovery button stephen fleming 5 2,660 01-26-2021, 12:33 PM
Last Post: PDXpi
  Display options for the Rock64 joey49 1 1,097 11-23-2020, 09:52 AM
Last Post: joey49
  Are HW design files available for ROCK64? irenek 1 1,421 09-29-2020, 05:57 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)