k3ng / k3ng_cw_keyer

K3NG Arduino CW Keyer
http://blog.radioartisan.com/arduino-cw-keyer/
GNU General Public License v3.0
424 stars 220 forks source link

Support for configuring the side tone line states. #98

Closed cstroie closed 4 years ago

cstroie commented 4 years ago

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);
k3ng commented 4 years ago

Thank you for the contribution!

73 Goody K3NG