]> git.donarmstrong.com Git - kiibohd-controller.git/commit
Added the averaged initial average as well as problem key rejection
authorJacob Alexander <triplehaata@gmail.com>
Mon, 2 Dec 2013 04:07:38 +0000 (23:07 -0500)
committerJacob Alexander <triplehaata@gmail.com>
Mon, 2 Dec 2013 04:07:38 +0000 (23:07 -0500)
commit61e45985c23f64ab8f02f2d84a1a88bef433dc66
tree942ba62e0ebf815c46e46474ef6cba7c3d83a809
parentdd1d3ad362d8ba73f1237b8bbe6a417c6d4f0269
Added the averaged initial average as well as problem key rejection

- Any keys that exceed the high average are temporarily disabled
- If the sense value goes below the initial average sense, it is re-enabled
- Even works if *many* keys are pressed initially

- Still needs a bit of detection of consistent high keys that sometimes sneak below the threshold
  (May be able to have an elastic threshold that could deal with this)

- Removed dead code (and redundant calculations)
Scan/avr-capsense/scan_loop.c