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

Code for momentary DPDT switch #155

Open
BigRybow opened this issue Feb 26, 2025 · 0 comments
Open

Code for momentary DPDT switch #155

BigRybow opened this issue Feb 26, 2025 · 0 comments

Comments

@BigRybow
Copy link

Making this project for our upcoming wedding. Instead of a vintage phone we picked up a phone off wayfair that uses a momentary DPDT switch instead of a hook switch. It works OK, but the state it's in (recording or stopped) is not consistent. I found this line in another post for line 163, and I wonder if it would work for this setup.

Change if(buttonRecord.risingEdge()) to if(buttonRecord.read() == 1)

I would also change the "recording start" command line to 0 I think. The switch is currently wired as open when the handset is lifted, and closed when it is replaced.

Any advice would be appreciated!

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

1 participant