I need to output the LPcomp output to a GPIO pin to control a heater on/off. Would you give me example code for this function?
I need to output the LPcomp output to a GPIO pin to control a heater on/off. Would you give me example code for this function?
You should be able to use GPIOTE and PPI to do this.
Have a look at the GPIOTE example.