HID Mouse: Illuminance vs. distance (SensorTag) Bluetooth Measure illuminance (SensorTag) as a function of the distance tracked by a mouse. last tempAll -tempAll new count dx dy x y x2 y2 d2 d dHist RawInt e m factor illum illumHist 00 dx dy 50 01 RawInt illumHist dHist y x x last dx tempAll tempAll count tempAll last new count 0 new x y last dy tempAll tempAll -1 -tempAll tempAll count -tempAll last new count 0 new y x x x2 y y y2 x2 y2 d2 d2 0.5 d RawInt e e RawInt m 2 e factor factor m illum illum count count 0 illum illumHist count 0 d dHist dHist illumHist