/* Function for starting Capacitive Sensor High module. 
Function enables one slider and one button.  */
static void csense_start(void)
/* Function for starting Capacitive Sensor High module. 
Function enables one slider and one button.  */
static void csense_start(void)
{
    ret_code_t err_code;
    static uint16_t touched_counter = 0;
    err_code = nrf_csense_init(nrf_csense_handler, APP_TIMER_TICKS_TIMEOUT);
    APP_ERROR_CHECK(err_code);
    nrf_csense_instance_context_set(&m_button, (void*)&touched_counter);
    nrf_csense_instance_context_set(&m_slider, (void*)slider_handler);
    err_code = nrf_csense_add(&m_button);
    APP_ERROR_CHECK(err_code);
    err_code = nrf_csense_add(&m_slider);
    APP_ERROR_CHECK(err_code);
}