balassy / MMM-ModuleToggleButton

MagicMirror module that allows displaying and hiding modules when a hardware button is pushed.
MIT License
6 stars 3 forks source link

No signal with GPIO #2

Closed nee0 closed 8 months ago

nee0 commented 5 years ago

I have installed MMM-ModuleToggleButton. The module hides the specific modules as wanted.

I have activated the GPIO in Raspberry pi menu. Iam using pin 20 (GND) and 22 (GPIO 6) to my momentary switch. Using Raspbeery pi 2 model B.

No response when i press the switch. Anyone have any idea?

This is the config iam using.

{   
          module: 'MMM-ModuleToggleButton',
          config: {
        buttonGpioPin: 6,
        moduleNames: [
          'clock',
          'calendar'
        ]
          }
 },
balassy commented 5 years ago

Hello @nee0, There is nothing in the code that would prevent the module to work with your settings, actually I'm using it with the same configuration. But according to this page GPIO 6 is on pin 31, not on 22. Could you please double check your wiring?

balassy commented 8 months ago

I'm closing this issue because it was not updated for more than 4 years.