mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-11 04:10:58 +00:00
ba7f52aaeb
* added bordsource 3x4 macro pad * added bordsource 3x4 macro pad * Update keyboards/boardsource/3x4/3x4.h * Update keyboards/boardsource/3x4/3x4.c * Update keyboards/boardsource/3x4/config.h * Update keyboards/boardsource/3x4/config.h * Update keyboards/boardsource/3x4/config.h * Update keyboards/boardsource/3x4/config.h * added link to readme * Update keyboards/boardsource/3x4/keymaps/default/keymap.c * Apply suggestions from code review * changed the layout to refelect the keyboard * Update keyboards/boardsource/3x4/info.json Oh your right my bad. In the future is there an easier way for me to test the info.json and the confiscator before doing my pr? * Apply suggestions from code review * got 3x4 building again * Apply suggestions from code review * applied requested change on readme * Update keyboards/boardsource/3x4/readme.md * Apply suggestions from code review
27 lines
495 B
C
27 lines
495 B
C
#include QMK_KEYBOARD_H
|
|
|
|
enum layers {
|
|
_MAIN,
|
|
_RAISE,
|
|
_LOWER,
|
|
};
|
|
|
|
// Readability keycodes
|
|
#define LOWER MO(_LOWER)
|
|
#define RAISE MO(_RAISE)
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
[_MAIN] = LAYOUT(
|
|
KC_0, KC_1, KC_4, KC_7,
|
|
KC_ENT, KC_2, KC_5, KC_8,
|
|
RAISE, KC_3, KC_6, KC_9
|
|
),
|
|
[_RAISE] = LAYOUT(
|
|
_______, _______, _______, _______,
|
|
_______, _______, _______, _______,
|
|
_______, _______, _______, RESET
|
|
)
|
|
|
|
};
|