remove (sine) audio out for now
This commit is contained in:
parent
72a5f04ec6
commit
f12700cc42
2 changed files with 7 additions and 7 deletions
|
@ -36,7 +36,7 @@ uint64_t calcElementDurationUs(uint8_t wpm)
|
|||
return duration;
|
||||
}
|
||||
|
||||
Keyer::Keyer(uint8_t wpm, Mode mode) : m_wpm(wpm), m_mode(mode), m_buzzer(BUZZER_PIN), m_audioOut(AUDIO_OUT_PIN)
|
||||
Keyer::Keyer(uint8_t wpm, Mode mode) : m_wpm(wpm), m_mode(mode), m_buzzer(BUZZER_PIN) //, m_audioOut(AUDIO_OUT_PIN)
|
||||
{
|
||||
m_elementDuration = calcElementDurationUs(m_wpm);
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ void Keyer::run()
|
|||
gpio_put(LED_PIN, 1);
|
||||
gpio_put(CW_OUT_PIN, 1);
|
||||
m_buzzer.on(SIDETONE_FREQ);
|
||||
m_audioOut.on(SIDETONE_FREQ);
|
||||
//m_audioOut.on(SIDETONE_FREQ);
|
||||
} else {
|
||||
// If right paddle üressed -> note for Iambic B
|
||||
if (right_paddle_pressed() && !m_keyNextIambicB) {
|
||||
|
@ -105,7 +105,7 @@ void Keyer::run()
|
|||
gpio_put(LED_PIN, 0);
|
||||
gpio_put(CW_OUT_PIN, 0);
|
||||
m_buzzer.off();
|
||||
m_audioOut.off();
|
||||
//m_audioOut.off();
|
||||
m_previousState = State::Dit;
|
||||
m_state = State::DitPause;
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ void Keyer::run()
|
|||
gpio_put(LED_PIN, 1);
|
||||
gpio_put(CW_OUT_PIN, 1);
|
||||
m_buzzer.on(SIDETONE_FREQ);
|
||||
m_audioOut.on(SIDETONE_FREQ);
|
||||
//m_audioOut.on(SIDETONE_FREQ);
|
||||
} else {
|
||||
// If left paddle pressed -> Note for Iambic B
|
||||
if (left_paddle_pressed() && !m_keyNextIambicB) {
|
||||
|
@ -130,7 +130,7 @@ void Keyer::run()
|
|||
gpio_put(LED_PIN, 0);
|
||||
gpio_put(CW_OUT_PIN, 0);
|
||||
m_buzzer.off();
|
||||
m_audioOut.off();
|
||||
//m_audioOut.off();
|
||||
m_previousState = State::Dah;
|
||||
m_state = State::DahPause;
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ void Keyer::run()
|
|||
gpio_put(LED_PIN, 0);
|
||||
gpio_put(CW_OUT_PIN, 0);
|
||||
m_buzzer.off();
|
||||
m_audioOut.off();
|
||||
//m_audioOut.off();
|
||||
m_keyNextIambicB = false;
|
||||
m_currentlyPausing = false;
|
||||
m_currentlyKeying = false;
|
||||
|
|
|
@ -32,7 +32,7 @@ class Keyer final
|
|||
absolute_time_t m_pausing_until {0};
|
||||
|
||||
Sidetone m_buzzer;
|
||||
Sidetone m_audioOut;
|
||||
//Sidetone m_audioOut;
|
||||
|
||||
State m_state {State::Wait};
|
||||
State m_previousState {State::Wait};
|
||||
|
|
Loading…
Reference in a new issue