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
  How to enable ES9023-based DAC hat on Rock64? lowry 2 213 03-18-2021, 03:44 PM
Last Post: zborgerd
  1wire DS18b20 on Rock64? mypineme 3 1,177 02-10-2021, 11:21 AM
Last Post: TRS-80
  Recovery button stephen fleming 5 1,918 01-26-2021, 12:33 PM
Last Post: PDXpi
  Display options for the Rock64 joey49 1 697 11-23-2020, 09:52 AM
Last Post: joey49
  Are HW design files available for ROCK64? irenek 1 1,057 09-29-2020, 05:57 PM
Last Post: tllim
  No sound from Rock64 DAC codebreaker 2 1,006 09-29-2020, 02:14 PM
Last Post: codebreaker
  Which Voltage and Amper to supply both Rock64 + External drive enclosure ? prog-amateur 0 947 08-21-2020, 09:16 PM
Last Post: prog-amateur
Information Rock64 RTL8188EU Wifi Adapter from Pine Store Tested Well MarkHaysHarris777 7 4,658 05-13-2020, 06:00 PM
Last Post: Leon Rembowski
  accident got 12v at my rock64 lifeform 1 1,225 04-17-2020, 09:46 AM
Last Post: fire219
  Help! Rock64 won't boot anything! trohn_javolta 3 2,087 03-09-2020, 06:03 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)