Matrix scanning for ARM now functional.

- CLI Debugging options added
- Various bug fixes for the matrix scanning algorithm
- Changed debouncing algorithm
This commit is contained in:
Jacob Alexander 2014-08-02 22:19:33 -07:00
parent d6345c307f
commit 19f42b0a81
6 changed files with 295 additions and 107 deletions

View file

@ -51,15 +51,12 @@
// Rows (Sense)
// PTD1..7
// Debounce threshold
#define DEBOUNCE_THRESHOLD 32
// Define Rows (Sense) and Columns (Strobes)
GPIO_Pin Matrix_cols[] = { gpio(B,0), gpio(B,1), gpio(B,2), gpio(B,3), gpio(B,16), gpio(B,17), gpio(C,4), gpio(C,5) };
GPIO_Pin Matrix_cols[] = { gpio(B,0), gpio(B,1), gpio(B,2), gpio(B,3), gpio(B,16), gpio(B,17), gpio(C,4), gpio(C,5), gpio(D,0) };
GPIO_Pin Matrix_rows[] = { gpio(D,1), gpio(D,2), gpio(D,3), gpio(D,4), gpio(D,5), gpio(D,6), gpio(D,7) };
// Define type of scan matrix
Config Matrix_type = Config_Pullup;
Config Matrix_type = Config_Pulldown;
#endif // __MATRIX_H