Update with latest tests

This commit is contained in:
Mikko Ahlroth 2023-07-13 14:44:23 +03:00
parent 15568a7b37
commit a6f5047a88
4 changed files with 21 additions and 15 deletions

View file

@ -7,7 +7,7 @@
"features": { "features": {
"bootmagic": true, "bootmagic": true,
"command": false, "command": false,
"console": false, "console": true,
"extrakey": true, "extrakey": true,
"mousekey": true, "mousekey": true,
"nkro": true "nkro": true
@ -20,8 +20,8 @@
"url": "", "url": "",
"usb": { "usb": {
"device_version": "1.0.0", "device_version": "1.0.0",
"pid": "0x0000", "pid": "0xFAFE",
"vid": "0xFEED" "vid": "0xFEFA"
}, },
"layouts": { "layouts": {
"LAYOUT_fullsize_jis": { "LAYOUT_fullsize_jis": {

View file

@ -21,14 +21,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* *
*/ */
[0] = { [0] = {
{}, {KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A},
{}, {KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A},
{}, {KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A},
{}, {KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A},
{}, {KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A},
{}, {KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A},
{}, {KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A},
{} {KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A, KC_A}
} }
}; };

View file

@ -244,18 +244,26 @@ void matrix_init_custom(void) {
writePinLow(COL_E); writePinLow(COL_E);
wait_us(20); wait_us(20);
dprintf("Init finished"); print("Init finished\n");
} }
bool matrix_scan_custom(matrix_row_t current_matrix[]) { bool matrix_scan_custom(matrix_row_t current_matrix[]) {
static uint16_t counter = 0;
bool matrix_has_changed = false; bool matrix_has_changed = false;
enum Demux active_demux = D139; enum Demux active_demux = D139;
++counter;
do { do {
select_demux(active_demux); select_demux(active_demux);
matrix_has_changed = scan_demux(current_matrix, active_demux) || matrix_has_changed; matrix_has_changed = scan_demux(current_matrix, active_demux) || matrix_has_changed;
dprintf("Checking demux %d, %i", active_demux, matrix_has_changed);
if (counter % 1000 == 0) {
printf("Checking demux %d, %i\n", active_demux, matrix_has_changed);
counter = 0;
}
active_demux = next_demux(active_demux); active_demux = next_demux(active_demux);
} while (active_demux != END); } while (active_demux != END);

View file

@ -1,4 +1,2 @@
CUSTOM_MATRIX = lite CUSTOM_MATRIX = lite
SRC += matrix.c SRC += matrix.c
CONSOLE_ENABLE = yes