PaulStoffregen / CapacitiveSensor

Detect touch or proximity by capacitve sensing
http://www.pjrc.com/teensy/td_libs_CapacitiveSensor.html
392 stars 147 forks source link

Configure sense for each direction (UP and DOWN) #28

Open vovodroid opened 6 years ago

vovodroid commented 6 years ago

I noticed that depending on environment (surrounding electric fields?) one sensing direction has more sensitiveness that other. By direction I mean either detection state change from 0 to 1 (UP), or from 1 to 0 (DOWN).

Currently both direction are measured and results are added. I add option to measure it in any direction or both (with keeping backward compatibility).