Debounce defines cleanup (#19742)
* Clean up `DEBOUNCE` in config.h, 0-9 * Clean up `DEBOUNCE` in config.h, A * Clean up `DEBOUNCE` in config.h, B * Clean up `DEBOUNCE` in config.h, C * Clean up `DEBOUNCE` in config.h, D * Clean up `DEBOUNCE` in config.h, E * Clean up `DEBOUNCE` in config.h, F * Clean up `DEBOUNCE` in config.h, G * Clean up `DEBOUNCE` in config.h, H * Clean up `DEBOUNCE` in config.h, handwired * Clean up `DEBOUNCE` in config.h, I * Clean up `DEBOUNCE` in config.h, J * Clean up `DEBOUNCE` in config.h, K * Clean up `DEBOUNCE` in config.h, L * Clean up `DEBOUNCE` in config.h, M * Clean up `DEBOUNCE` in config.h, N * Clean up `DEBOUNCE` in config.h, O * Clean up `DEBOUNCE` in config.h, P * Clean up `DEBOUNCE` in config.h, Q * Clean up `DEBOUNCE` in config.h, R * Clean up `DEBOUNCE` in config.h, S * Clean up `DEBOUNCE` in config.h, T * Clean up `DEBOUNCE` in config.h, U * Clean up `DEBOUNCE` in config.h, V * Clean up `DEBOUNCE` in config.h, W * Clean up `DEBOUNCE` in config.h, X * Clean up `DEBOUNCE` in config.h, Y * Clean up `DEBOUNCE` in config.h, Z * Remove default debounce from info.json * Migrate non-default debounce to info.json
This commit is contained in:
		
							parent
							
								
									fb6c9eaed4
								
							
						
					
					
						commit
						ebb512db82
					
				
					 2212 changed files with 130 additions and 6083 deletions
				
			
		| 
						 | 
				
			
			@ -26,9 +26,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#define MOUSEKEY_WHEEL_DELTA 1
 | 
			
		||||
#define MOUSEKEY_WHEEL_TIME_TO_MAX 1
 | 
			
		||||
 | 
			
		||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
 | 
			
		||||
#define DEBOUNCE 5
 | 
			
		||||
 | 
			
		||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 | 
			
		||||
#define LOCKING_SUPPORT_ENABLE
 | 
			
		||||
/* Locking resynchronize hack */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,13 +27,6 @@
 | 
			
		|||
#define LED_COMPOSE_PIN C3
 | 
			
		||||
#define LED_PIN_ON_STATE 0
 | 
			
		||||
 | 
			
		||||
/* Well-worn Cherry MX key switches can bounce for up to 20ms, despite the
 | 
			
		||||
 * Cherry data sheet specifying 5ms. Because we use the sym_eager_pk debounce
 | 
			
		||||
 * algorithm, this debounce latency only affects key releases (not key
 | 
			
		||||
 * presses). */
 | 
			
		||||
#undef DEBOUNCE
 | 
			
		||||
#define DEBOUNCE 20
 | 
			
		||||
 | 
			
		||||
#define IGNORE_MOD_TAP_INTERRUPT
 | 
			
		||||
 | 
			
		||||
// The Teensy 2++ consumes about 60 mA of current at its full speed of 16 MHz as
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,5 +5,6 @@
 | 
			
		|||
        "vid": "0xFEED",
 | 
			
		||||
        "pid": "0x6060",
 | 
			
		||||
        "device_version": "0.0.2"
 | 
			
		||||
    }
 | 
			
		||||
    },
 | 
			
		||||
    "debounce": 20
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -37,13 +37,6 @@
 | 
			
		|||
/* COL2ROW or ROW2COL */
 | 
			
		||||
#define DIODE_DIRECTION COL2ROW
 | 
			
		||||
 | 
			
		||||
/* Well-worn Cherry MX key switches can bounce for up to 20ms, despite the
 | 
			
		||||
 * Cherry data sheet specifying 5ms. Because we use the sym_eager_pk debounce
 | 
			
		||||
 * algorithm, this debounce latency only affects key releases (not key
 | 
			
		||||
 * presses). */
 | 
			
		||||
#undef DEBOUNCE
 | 
			
		||||
#define DEBOUNCE 20
 | 
			
		||||
 | 
			
		||||
#define IGNORE_MOD_TAP_INTERRUPT
 | 
			
		||||
 | 
			
		||||
// The Teensy 3.6 consumes about 80 mA of current at its full speed of 180 MHz:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,5 +5,6 @@
 | 
			
		|||
        "vid": "0x1209",
 | 
			
		||||
        "pid": "0x345C",
 | 
			
		||||
        "device_version": "0.0.1"
 | 
			
		||||
    }
 | 
			
		||||
    },
 | 
			
		||||
    "debounce": 20
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -64,13 +64,6 @@
 | 
			
		|||
/* COL2ROW or ROW2COL */
 | 
			
		||||
#define DIODE_DIRECTION COL2ROW
 | 
			
		||||
 | 
			
		||||
/* Well-worn Cherry MX key switches can bounce for up to 20ms, despite the
 | 
			
		||||
 * Cherry data sheet specifying 5ms. Because we use the sym_eager_pk debounce
 | 
			
		||||
 * algorithm, this debounce latency only affects key releases (not key
 | 
			
		||||
 * presses). */
 | 
			
		||||
#undef DEBOUNCE
 | 
			
		||||
#define DEBOUNCE 20
 | 
			
		||||
 | 
			
		||||
#define IGNORE_MOD_TAP_INTERRUPT
 | 
			
		||||
 | 
			
		||||
// The Teensy 4.1 consumes about 100 mA of current at its full speed of 600 MHz
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,5 +5,6 @@
 | 
			
		|||
        "vid": "0x1209",
 | 
			
		||||
        "pid": "0x345C",
 | 
			
		||||
        "device_version": "0.0.1"
 | 
			
		||||
    }
 | 
			
		||||
    },
 | 
			
		||||
    "debounce": 20
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -64,13 +64,6 @@
 | 
			
		|||
/* COL2ROW or ROW2COL */
 | 
			
		||||
#define DIODE_DIRECTION COL2ROW
 | 
			
		||||
 | 
			
		||||
/* Well-worn Cherry MX key switches can bounce for up to 20ms, despite the
 | 
			
		||||
 * Cherry data sheet specifying 5ms. Because we use the sym_eager_pk debounce
 | 
			
		||||
 * algorithm, this debounce latency only affects key releases (not key
 | 
			
		||||
 * presses). */
 | 
			
		||||
#undef DEBOUNCE
 | 
			
		||||
#define DEBOUNCE 20
 | 
			
		||||
 | 
			
		||||
#define IGNORE_MOD_TAP_INTERRUPT
 | 
			
		||||
 | 
			
		||||
// The Teensy LC power consumption is unknown as per
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,5 +5,6 @@
 | 
			
		|||
        "vid": "0x1209",
 | 
			
		||||
        "pid": "0x345C",
 | 
			
		||||
        "device_version": "0.0.1"
 | 
			
		||||
    }
 | 
			
		||||
    },
 | 
			
		||||
    "debounce": 20
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,9 +28,6 @@
 | 
			
		|||
#define LED_COMPOSE_PIN F0
 | 
			
		||||
#define LED_PIN_ON_STATE 0
 | 
			
		||||
 | 
			
		||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
 | 
			
		||||
#define DEBOUNCE 5
 | 
			
		||||
 | 
			
		||||
/* don't know if this should be defined at the board or top level. Assuming board 
 | 
			
		||||
#define MOUSEKEY_DELAY          100
 | 
			
		||||
#define MOUSEKEY_INTERVAL       20
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue