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

count the number of gpio changes

Probably, I am having a problem with finding the proper query phrase. 

I have a sensor (Hall-type sensor) that generates pulses, and I need to count the total number of pulses and update this number in some GATT property. 

I'm looking for a tutorial on using external interrupts (probably?) 

Since the sensor is not always on - probably, there might be some tricks to reduce power consumption? (I need to keep the number of pulses all the time, even if my device is powered off) 

Parents Reply Children
No Data
Related