X-Git-Url: https://git.donarmstrong.com/?p=tmk_firmware.git;a=blobdiff_plain;f=common%2Fmatrix.h;h=23fef78f74c8cc15d12e38f95bca47dec2947910;hp=b3332d5ff91ca3132cc5524a4b6485df568d5b0c;hb=608ebe2686bdb3fdbd0426731cabdf6082c57b53;hpb=4ae979f6ef8dbf9e1d1f35be15322ad6d02e2958 diff --git a/common/matrix.h b/common/matrix.h index b3332d5..23fef78 100644 --- a/common/matrix.h +++ b/common/matrix.h @@ -44,17 +44,18 @@ void matrix_init(void); /* scan all key states on matrix */ uint8_t matrix_scan(void); /* whether modified from previous scan. used after matrix_scan. */ -bool matrix_is_modified(void); -/* whether ghosting occur on matrix. */ -bool matrix_has_ghost(void); +bool matrix_is_modified(void) __attribute__ ((deprecated)); /* whether a swtich is on */ bool matrix_is_on(uint8_t row, uint8_t col); /* matrix state on row */ matrix_row_t matrix_get_row(uint8_t row); -/* count keys pressed */ -uint8_t matrix_key_count(void); /* print matrix for debug */ void matrix_print(void); +/* power control */ +void matrix_power_up(void); +void matrix_power_down(void); + + #endif