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
Lightbulb Mount a HeatSink on the Rock64 using 3M Thermal Tapes MarkHaysHarris777 22 10,694 11-29-2019, 03:14 AM
Last Post: ab1jx
  My Rock64 died (with a happy ending!) rmbusy 1 279 08-15-2019, 06:48 PM
Last Post: tllim
Information Brushless Fan (5v) for Rock64 Clear Case Soft PWM Drive 2N2222 MarkHaysHarris777 7 4,767 07-09-2019, 06:15 AM
Last Post: merwone
  Rock64 stereo audio dac add-on board with RockPro64 Tim13 1 222 07-08-2019, 07:15 PM
Last Post: tllim
  Rock64's temperature while being in aluminium case _zernok 3 498 06-23-2019, 08:00 AM
Last Post: rasputin
  Rock64 Stereo Audio DAC add-on board Hukmut 3 649 06-15-2019, 07:56 AM
Last Post: MiiCode2
Smile wooden case for ROCK64 killor 12 2,506 05-05-2019, 07:45 AM
Last Post: killor
  Will Gert's VGA666 adapter work with the Rock64? Other display options? pcosm 0 102 05-03-2019, 01:32 AM
Last Post: pcosm
  Is my Rock64 is dead ? totalgaara 9 787 04-30-2019, 03:03 AM
Last Post: totalgaara
  Rock64 and USB 3.0 HDD + USB 2.0 CC2531 doungle ABoosh 3 1,095 03-19-2019, 09:19 AM
Last Post: azacan

Forum Jump:


Users browsing this thread: 1 Guest(s)