Read the statement by Michael Teeuw here.
MMM-Buttons keine Reaktion?
-
Hello,
is there a log where i can see if something happens when the button press.
Have MMM buttons run on the Raspi and a pushbutton on Ground and pin 11 (gpio17) plugged.
Nothing reacts when I push? Do i still have to adjust something?Hallo,
wo gibts denn ein log wo mann schauen kann ob sich was regt beim button drücken.
Habe MMM-Buttons am laufen und am Raspi ein Pushbutton auf Ground und Pin 11 (gpio17) gesteckt.
Nix reagiert? Muss ich noch was anderes einstellen oder einschalten?MMM-PageSelect läuft auch damit ich mehrere Seiten habe. buttons: [ { pin: 11, //The pin that connects your first button name: "Hauptseite", //Or whatever you really want longPress: { //longPress or shortPress doesnt matter. Really it's just the stuff on the inside that matters. notification: "PAGE_SELECT", payload: "haupt" //Or whatever page you want }, shortPress: { notification: "PAGE_SELECT", payload: "zweite" //Or whatever page you want } },Danke
-
with a python.py and this code:
import RPi.GPIO as GPIO import time GPIO.setwarnings(False) # Ignore warning for now GPIO.setmode(GPIO.BOARD) # Use physical pin numbering GPIO.setup(11, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) tries = 0 while (tries < 200): if GPIO.input(11): print("11 Open") else: print ("Close") time.sleep(1.) tries = tries + 1 #GPIO.cleanup() # clean up GPIO on normal exitWith this code I can see that the button works and triggers.
But in magicmirror pm2 log mm it shows no reaction!
Do i have to adjust something else?
Thanks and a happy new year 2019 -
OK it was the pin!
The correct PIN number is really impossible ;-)But it is very confusing with pin BCM and BOARD
So the BOARD PIN is correct.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login