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

Feature Idea: Press M5 Button to add +1 to Camera #5

Open
Fred-DTV opened this issue Nov 18, 2020 · 1 comment
Open

Feature Idea: Press M5 Button to add +1 to Camera #5

Fred-DTV opened this issue Nov 18, 2020 · 1 comment

Comments

@Fred-DTV
Copy link

Fred-DTV commented Nov 18, 2020

Hi,

I had this idea where you can press the m5 Button (BtnA) to scroll through the camera channels.

I've tried different ways to implement this myself but i couldn't get it running.
M5.BtnA.waspressed()
M5.BtnA.ispressed()

if (M5.BtnA.wasPressed()) { cameraNumber = FSM + 1; FSM++; if (FSM >= 4) // set max number of camera in this case 4 FSM = 1; }

Both didn't work for me.

Maybe someone else is luckier than me.

@jameskirsop
Copy link

I've put put in a PR to solve this issue. I've tested this on an M5StickC and it's worked quite well.

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