remove (sine) audio out for now

This commit is contained in:
Martin Brodbeck 2024-02-21 12:07:21 +01:00
parent 72a5f04ec6
commit f12700cc42
2 changed files with 7 additions and 7 deletions

View file

@ -36,7 +36,7 @@ uint64_t calcElementDurationUs(uint8_t wpm)
return duration; 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); m_elementDuration = calcElementDurationUs(m_wpm);
} }
@ -93,7 +93,7 @@ void Keyer::run()
gpio_put(LED_PIN, 1); gpio_put(LED_PIN, 1);
gpio_put(CW_OUT_PIN, 1); gpio_put(CW_OUT_PIN, 1);
m_buzzer.on(SIDETONE_FREQ); m_buzzer.on(SIDETONE_FREQ);
m_audioOut.on(SIDETONE_FREQ); //m_audioOut.on(SIDETONE_FREQ);
} else { } else {
// If right paddle üressed -> note for Iambic B // If right paddle üressed -> note for Iambic B
if (right_paddle_pressed() && !m_keyNextIambicB) { if (right_paddle_pressed() && !m_keyNextIambicB) {
@ -105,7 +105,7 @@ void Keyer::run()
gpio_put(LED_PIN, 0); gpio_put(LED_PIN, 0);
gpio_put(CW_OUT_PIN, 0); gpio_put(CW_OUT_PIN, 0);
m_buzzer.off(); m_buzzer.off();
m_audioOut.off(); //m_audioOut.off();
m_previousState = State::Dit; m_previousState = State::Dit;
m_state = State::DitPause; m_state = State::DitPause;
} }
@ -118,7 +118,7 @@ void Keyer::run()
gpio_put(LED_PIN, 1); gpio_put(LED_PIN, 1);
gpio_put(CW_OUT_PIN, 1); gpio_put(CW_OUT_PIN, 1);
m_buzzer.on(SIDETONE_FREQ); m_buzzer.on(SIDETONE_FREQ);
m_audioOut.on(SIDETONE_FREQ); //m_audioOut.on(SIDETONE_FREQ);
} else { } else {
// If left paddle pressed -> Note for Iambic B // If left paddle pressed -> Note for Iambic B
if (left_paddle_pressed() && !m_keyNextIambicB) { if (left_paddle_pressed() && !m_keyNextIambicB) {
@ -130,7 +130,7 @@ void Keyer::run()
gpio_put(LED_PIN, 0); gpio_put(LED_PIN, 0);
gpio_put(CW_OUT_PIN, 0); gpio_put(CW_OUT_PIN, 0);
m_buzzer.off(); m_buzzer.off();
m_audioOut.off(); //m_audioOut.off();
m_previousState = State::Dah; m_previousState = State::Dah;
m_state = State::DahPause; m_state = State::DahPause;
} }
@ -180,7 +180,7 @@ void Keyer::run()
gpio_put(LED_PIN, 0); gpio_put(LED_PIN, 0);
gpio_put(CW_OUT_PIN, 0); gpio_put(CW_OUT_PIN, 0);
m_buzzer.off(); m_buzzer.off();
m_audioOut.off(); //m_audioOut.off();
m_keyNextIambicB = false; m_keyNextIambicB = false;
m_currentlyPausing = false; m_currentlyPausing = false;
m_currentlyKeying = false; m_currentlyKeying = false;

View file

@ -32,7 +32,7 @@ class Keyer final
absolute_time_t m_pausing_until {0}; absolute_time_t m_pausing_until {0};
Sidetone m_buzzer; Sidetone m_buzzer;
Sidetone m_audioOut; //Sidetone m_audioOut;
State m_state {State::Wait}; State m_state {State::Wait};
State m_previousState {State::Wait}; State m_previousState {State::Wait};