Hello,
I don't know why when the code achieve the
nrf_csense_add(&m_button);
the program hold out.
Thanks in advance.
Hello,
I don't know why when the code achieve the
nrf_csense_add(&m_button);
the program hold out.
Thanks in advance.
Hi,
Can you clarify the question?
Hi,
Can you clarify the question?
Hi,
I get the SDK 15 example ble uart, and I want to include the csense utility in a pad of the micro.
So, I get the csense example and I try to import it to the ble uart example.
I see. And that did not work as expected? What is the problem? Please elaborate.
Hi,
I need comment this part of the code:
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);
//err_code = nrf_csense_add(&m_button);
//APP_ERROR_CHECK(err_code);
}
because this part holds out the program.
Hi,
What do you mean by "holds out"? Is it so that this happens when you don't comment out the last two lines? If so, I wonder if the problem is that err_code is not 0 (NRF_SUCCESS)? Please debug and let me know. If the error code is not 0, then what is it?
You may find this post useful: An introduction to error handling in nRF5 projects.