This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I2S - sound problem

Hi, 

I use the app_buton module to handle the buttons. When detecting a button interrupt I call a function that sends data to I2S (using the "app_sched_event_put" function):

static void button_event_handler(uint8_t pin_no, uint8_t button_action)
{
    switch (pin_no)
    {
        case 28:
        {
            NRF_LOG_INFO("Send button state change.");
            app_sched_event_put(NULL, 0, Sound_Play);
            break;
        }
        default:
            APP_ERROR_HANDLER(pin_no);
            break;
    }
}

When a button interruption is detected (pressing and releasing the button), a small click is heard in the speaker. What could be the reason? how can i solve this problem?

Parents Reply Children
No Data
Related