Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struggling to get button working with MMM-Carousel #10

Open
mirror-master opened this issue Sep 18, 2020 · 1 comment
Open

Struggling to get button working with MMM-Carousel #10

mirror-master opened this issue Sep 18, 2020 · 1 comment

Comments

@mirror-master
Copy link

I was wondering if you know how to get a physical button to work with MMM-carousel. I have been struggling to get the button to move the slides. Its been a while and i lost progress i had. tried this just to get one slide button working to no avail.

` {
module: 'MMM-Buttons',
config: {
buttons: [
{
pin: 25,
name: "monitor_control",
longPress: {
notification: "REMOTE_ACTION",
payload: {action: "MONITOROFF"}
},
shortPress: {
notification: "REMOTE_ACTION",
payload: {action: "MONITORON"}
}
},
{
pin: 18,
name: "ArrowRight",
shortPress: {

                notification: "CAROUSEL_NEXT",
                payload: {action: "CAROUSEL_NEXT"}
            },
            longPress: undefined
        }
    ]
}

},
`

@chietsuki
Copy link

Hi,

This syntax works for me:

    { module: 'MMM-Buttons',
      config: {
        buttons: [
          { pin: 17,
            shortPress: {
              notification: 'CAROUSEL_NEXT'
            },
            longPress: undefined
          }
        ]
    } },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants