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
Information Rock64 RTL8188EU Wifi Adapter from Pine Store Tested Well MarkHaysHarris777 7 1,857 05-13-2020, 06:00 PM
Last Post: Leon Rembowski
  accident got 12v at my rock64 lifeform 1 219 04-17-2020, 09:46 AM
Last Post: fire219
  Help! Rock64 won't boot anything! trohn_javolta 3 371 03-09-2020, 06:03 PM
Last Post: tllim
  Power Supply and Sinks for multi-Rock64 env Davo-CC 1 1,226 01-02-2020, 02:26 PM
Last Post: dpgraham
Lightbulb Mount a HeatSink on the Rock64 using 3M Thermal Tapes MarkHaysHarris777 22 14,794 11-29-2019, 03:14 AM
Last Post: ab1jx
  My Rock64 died (with a happy ending!) rmbusy 1 628 08-15-2019, 06:48 PM
Last Post: tllim
Information Brushless Fan (5v) for Rock64 Clear Case Soft PWM Drive 2N2222 MarkHaysHarris777 7 5,665 07-09-2019, 06:15 AM
Last Post: merwone
  Rock64 stereo audio dac add-on board with RockPro64 Tim13 1 551 07-08-2019, 07:15 PM
Last Post: tllim
  Rock64's temperature while being in aluminium case _zernok 3 917 06-23-2019, 08:00 AM
Last Post: rasputin
  Rock64 Stereo Audio DAC add-on board Hukmut 3 1,126 06-15-2019, 07:56 AM
Last Post: MiiCode2

Forum Jump:


Users browsing this thread: 1 Guest(s)