Hi, can anyone explain to me about this example in this link with details : github.com/.../main.c I'm a newbie in nordic and i found it difficult to understand this example. Kindly assist and reply asap. Thanks!
Hi, can anyone explain to me about this example in this link with details : github.com/.../main.c I'm a newbie in nordic and i found it difficult to understand this example. Kindly assist and reply asap. Thanks!
Is this the redbearlab module (i.e. BLE nano)? I am not too familiar with programming the nRF51 from Arduino IDE.
Yes i'm using redbear nrf51822-arduino library in my our PCB.
You can use the Ticker class like is shown in the HRM example, with something like ticker_task2.attach_us(callback_function, 100)
. I have not tested it though to see if it actually fires every 100us. You can also try to use the code found on github, but I guess you will get a compile error complaining about multiple definitions of void RTC_IRQHandler(void)
.
Ya if i try using the code found on github, I will be getting error complaining about multiple definitions of void RTC_IRQHandler(void). Yes the ticker class is working, but it is using low power RTC? My aim is to use RTC to saving power instead of normal timer.
I would definitely guess so. Using normal timer would make i.e. the HRM example use a lot of power. Since we from nordic didn't write this library, I cannot tell for sure. If you have questions about the arduino library I would ask redbearlabs.