Gesture detection using Particle Core and SparkFun Gesture Sensor

Just prepend the "modifier" volatile to your current declaration of int Isr_flag = 0;

An explanation for what it's good can be found here
Example: Logging and graphing data from your Spark Core using Google - #177 by ScruffR

1 Like