changeset 99:6cdbd3f73785

Increasing MAX_PRESS_DELTA_MV to measured min kishsaver value - Enabling the test point strobe on the kishsaver really kills the sensing (many keys don't work, even at 400)
author Jacob Alexander <triplehaata@gmail.com>
date Sun, 01 Dec 2013 17:13:42 -0500
parents 0271d9f93ffd
children a4fca67ec75d
files Scan/avr-capsense/scan_loop.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Scan/avr-capsense/scan_loop.c	Sun Dec 01 14:52:54 2013 -0500
+++ b/Scan/avr-capsense/scan_loop.c	Sun Dec 01 17:13:42 2013 -0500
@@ -32,7 +32,7 @@
 // ----- Defines -----
 
 // TODO dfj defines...needs commenting and maybe some cleaning...
-#define MAX_PRESS_DELTA_MV 380
+#define MAX_PRESS_DELTA_MV 450 // As measured from the Teensy ADC pin
 #define THRESHOLD_MV (MAX_PRESS_DELTA_MV >> 1)
 //(2560 / (0x3ff/2)) ~= 5
 #define MV_PER_ADC 5
@@ -232,7 +232,7 @@
 	strobe_map[6] = 8;
 	strobe_map[7] = 9;
 	// XXX - Disabling for now, not sure how to deal with test points yet (without spamming the debug)
-	//strobe_map[9] = 15; // Test point strobe (3 test points, sense 1, 4, 5)
+	//strobe_map[8] = 15; // Test point strobe (3 test points, sense 1, 4, 5)
 #elif defined(TERMINAL_6110668_STROBE)
 	total_strobes = 16;