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
  Power Supply and Sinks for multi-Rock64 env Davo-CC 1 961 01-02-2020, 02:26 PM
Last Post: dpgraham
Lightbulb Mount a HeatSink on the Rock64 using 3M Thermal Tapes MarkHaysHarris777 22 11,461 11-29-2019, 03:14 AM
Last Post: ab1jx
  My Rock64 died (with a happy ending!) rmbusy 1 320 08-15-2019, 06:48 PM
Last Post: tllim
Information Brushless Fan (5v) for Rock64 Clear Case Soft PWM Drive 2N2222 MarkHaysHarris777 7 4,874 07-09-2019, 06:15 AM
Last Post: merwone
  Rock64 stereo audio dac add-on board with RockPro64 Tim13 1 265 07-08-2019, 07:15 PM
Last Post: tllim
  Rock64's temperature while being in aluminium case _zernok 3 532 06-23-2019, 08:00 AM
Last Post: rasputin
  Rock64 Stereo Audio DAC add-on board Hukmut 3 717 06-15-2019, 07:56 AM
Last Post: MiiCode2
Smile wooden case for ROCK64 killor 12 2,558 05-05-2019, 07:45 AM
Last Post: killor
  Will Gert's VGA666 adapter work with the Rock64? Other display options? pcosm 0 110 05-03-2019, 01:32 AM
Last Post: pcosm
  Is my Rock64 is dead ? totalgaara 9 816 04-30-2019, 03:03 AM
Last Post: totalgaara

Forum Jump:


Users browsing this thread: 1 Guest(s)