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

Interruptíon call another function

Hi,

I am studying the GPIOTE example from SDK 14. I did some modification adding other led and doing the leds blinking in differents times (LED1 blink each 1 sec and LED2 blink each 3sec)

Now I wanna to do these interruption call another functions. i.e. I call the function to read temperature each 10 seconds (interrpt 1) and each 60 seconds (interrupt2) I show the average of the lasts 6 samples.

How I can change this example (or if there are another one better) for I can call function trough of a pre defined timer.

Thanks

Related