Browse Source

lower touch thresholds

main
Hendrik Langer 8 years ago
parent
commit
4c7ba90af7
  1. 16
      src/keyboard.cpp

16
src/keyboard.cpp

@ -54,16 +54,16 @@ void Keyboard::init() {
Serial.println(touch_value, DEC);
}
// set thresholds // ToDo: don't hardcode thresholds
threshold[0] = 500;
threshold[0] = 50;
threshold[1] = 0;
threshold[2] = 0;
threshold[3] = 666;
threshold[4] = 700;
threshold[5] = 700;
threshold[6] = 800;
threshold[7] = 800;
threshold[8] = 170;
threshold[9] = 350;
threshold[3] = 50;
threshold[4] = 50;
threshold[5] = 50;
threshold[6] = 50;
threshold[7] = 50;
threshold[8] = 50;
threshold[9] = 50;
for (int i=0; i<TOUCH_PAD_NUM; i++) touch_pad_config((touch_pad_t)i, threshold[i]);
// interrupt handler

Loading…
Cancel
Save