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

Support for configuring the side tone line states. #98

Merged
merged 1 commit into from
Jul 2, 2020

Conversation

cstroie
Copy link
Contributor

@cstroie cstroie commented Jun 30, 2020

There might be cases where the side tone digital line (no square wave generation, just a active beeper/buzzer attached) is active on LOW, not HIGH. For example the Arduino Multi Function Shield, a very convenient test platform. Therefore I added two defines in the spirit of the other active/inactive switches to control the HIGH/LOW states.

#define sidetone_line_active_state HIGH
#define sidetone_line_inactive_state LOW

Then, I used these defines to replace all corresponding occurrences for HIGH and LOW such as:

digitalWrite(sidetone_line, HIGH);

@cstroie cstroie changed the title Added support for configuring the side tone line states HIGH and LOW. Support for configuring the side tone line states HIGH and LOW. Jun 30, 2020
@cstroie cstroie changed the title Support for configuring the side tone line states HIGH and LOW. Support for configuring the side tone line states. Jun 30, 2020
@k3ng k3ng merged commit 251eb8f into k3ng:master Jul 2, 2020
@k3ng
Copy link
Owner

k3ng commented Jul 2, 2020

Thank you for the contribution!

73
Goody
K3NG

k3ng added a commit that referenced this pull request Jul 2, 2020
      Pull request 98 - Support for configuring the side tone line states - merged.  (#98) (Thanks, Costin Stroie)
      New settings: sidetone_line_active_state, sidetone_line_inactive_state
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

Successfully merging this pull request may close these issues.

None yet

2 participants