Skip to content

Commit

Permalink
feature: attempot to port domo macropad to modern qmk keyboard json f…
Browse files Browse the repository at this point in the history
…ormat
  • Loading branch information
Ardakilic committed Sep 10, 2024
1 parent 241d01f commit 8477831
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 138 deletions.
54 changes: 0 additions & 54 deletions keyboards/domo/config.h

This file was deleted.

1 change: 0 additions & 1 deletion keyboards/domo/domo.c

This file was deleted.

37 changes: 0 additions & 37 deletions keyboards/domo/domo.h

This file was deleted.

73 changes: 73 additions & 0 deletions keyboards/domo/keyboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"keyboard_name": "DoMo",
"manufacturer": "May Do",
"url": "https://github.com/mayTD/DoMo-Macro-Pad",
"maintainer": "Ardakikic",
"usb": {
"vid": "0xBBAB",
"pid": "0x0001",
"device_version": "0.0.1"
},
"features": {
"bootmagic": false,
"extrakey": true,
"mousekey": false,
"nkro": false,
"oled": true,
"encoder": true
},
"rgblight": {
"led_count": 4,
"animations": {
"breathing": true,
"rainbow_mood": true,
"rainbow_swirl": true,
"snake": true,
"knight": true,
"christmas": true,
"static_gradient": true,
"rgb_test": true,
"alternating": true,
"twinkle": true
}
},
"rgb_matrix": {
"driver": "ws2812"
},
"ws2812": {
"pin": "D3"
},
"encoder": {
"rotary": [
{"pin_a": "F6", "pin_b": "F5"}
]
},
"build": {
"lto": true
},
"matrix_pins": {
"rows": [ "B3", "B2", "B6"],
"cols": [ "B1", "E6", "E4", "E5" ]
},
"diode_direction": "ROW2COL",
"processor": "atmega32u4",
"bootloader": "caterina",
"layouts": {
"LAYOUT": {
"layout": [
{ "matrix": [0, 1], "x": 1, "y": 0 },
{ "matrix": [0, 2], "x": 2, "y": 0 },
{ "matrix": [0, 3], "x": 3, "y": 0 },

{ "matrix": [1, 1], "x": 1, "y": 1 },
{ "matrix": [1, 2], "x": 2, "y": 1 },
{ "matrix": [1, 3], "x": 3, "y": 1 },

{ "matrix": [2, 0], "x": 0, "y": 2 },
{ "matrix": [2, 1], "x": 1, "y": 2 },
{ "matrix": [2, 2], "x": 2, "y": 2 },
{ "matrix": [2, 3], "x": 3, "y": 2 }
]
}
}
}
19 changes: 1 addition & 18 deletions keyboards/domo/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
}
} else if (index == 1) {
if (clockwise) {
tap_code(KC_PGDOWN);
tap_code(KC_PGDN);
} else {
tap_code(KC_PGUP);
}
Expand All @@ -41,20 +41,3 @@ bool oled_task_user(void) {
return false;
}
#endif

// debugging
// void keyboard_post_init_user(void) {
// // Customise these values to desired behaviour
// debug_enable = true;
// debug_matrix = true;
// // debug_keyboard=true;
// // debug_mouse=true;
// }

// bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// // If console is enabled, it will print the matrix position and status of each key pressed
// #ifdef CONSOLE_ENABLE
// uprintf("KL: kc: %u, col: %u, row: %u, pressed: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed);
// #endif
// return true;
// }
28 changes: 0 additions & 28 deletions keyboards/domo/rules.mk

This file was deleted.

0 comments on commit 8477831

Please sign in to comment.