This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
#include <stdint.h> | ||
#include "annepro2.h" | ||
#include "qmk_ap2_led.h" | ||
|
||
enum anne_pro_layers { | ||
_BASE_LAYER, | ||
_FN1_LAYER, | ||
_FN2_LAYER, | ||
}; | ||
|
||
/* | ||
* Layer _BASE_LAYER | ||
* ,-----------------------------------------------------------------------------------------. | ||
* | esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Bksp | | ||
* |-----------------------------------------------------------------------------------------+ | ||
* | Tab | q | w | e | r | t | y | u | i | o | p | [ | ] | \ | | ||
* |-----------------------------------------------------------------------------------------+ | ||
* | FN1 | a | s | d | f | g | h | j | k | l | ; | ' | Enter | | ||
* |-----------------------------------------------------------------------------------------+ | ||
* | Shift | z | x | c | v | b | n | m | , | . | / | Shift | | ||
* |-----------------------------------------------------------------------------------------+ | ||
* | Ctrl | L1 | Alt | space | Alt | FN1 | FN2 | Ctrl | | ||
* \-----------------------------------------------------------------------------------------/ | ||
* | ||
*/ | ||
const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
[_BASE_LAYER] = KEYMAP( /* Base */ | ||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, | ||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | ||
MO(_FN1_LAYER), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSHIFT, | ||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FN1_LAYER), MO(_FN2_LAYER), KC_RCTRL | ||
), | ||
/* | ||
* Layer _FN1_LAYER | ||
* ,-----------------------------------------------------------------------------------------. | ||
* | ` | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | DELETE | | ||
* |-----------------------------------------------------------------------------------------+ | ||
* | Tab | HOM | UP | END | PGU | t | y | PGU | UP | PDN | PS | [ | ] | \ | | ||
* |-----------------------------------------------------------------------------------------+ | ||
* | FN1 |LEFT |DOWN |RIGHT| PDN | g | HOM |LEFT |DOWN |RIGHT| END | ' | Enter | | ||
* |-----------------------------------------------------------------------------------------+ | ||
* | Shift |V-UP |V-DWN|MUTE | PAUS | NEX | n | m | , |INSRT| / | Shift | | ||
* |-----------------------------------------------------------------------------------------+ | ||
* | Ctrl | L1 | Alt | Enter | Alt | FN1 | FN2 | Ctrl | | ||
* \-----------------------------------------------------------------------------------------/ | ||
* | ||
*/ | ||
[_FN1_LAYER] = KEYMAP( /* Base */ | ||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, | ||
KC_TRNS, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_TRNS, KC_TRNS, KC_PGUP, KC_UP, KC_PGDN, KC_PSCR, KC_TRNS, KC_TRNS, KC_TRNS, | ||
KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_TRNS, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, KC_TRNS, KC_TRNS, | ||
KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_INS, KC_TRNS, KC_TRNS, | ||
KC_TRNS, KC_TRNS, KC_TRNS, KC_ENT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
), | ||
/* | ||
* Layer _FN2_LAYER | ||
* ,-----------------------------------------------------------------------------------------. | ||
* | ~ | BT1 | BT2 | BT3 | BT4 | F5 | F6 | F7 | F8 |LEDOF|LEDON|LED_I |LED_S | Bksp | | ||
* |-----------------------------------------------------------------------------------------+ | ||
* | Tab | HOM | UP | END | PGU | t | y | u | UP | o | PS | [ | ] | \ | | ||
* |-----------------------------------------------------------------------------------------+ | ||
* | CAPS |LEFT |DOWN |RIGHT| PDN | g | HOM |LEFT |DOWN |RIGHT| END | ' | Enter | | ||
* |-----------------------------------------------------------------------------------------+ | ||
* | Shift | z | x | c | v | b | n | m | , | . | / | Shift | | ||
* |-----------------------------------------------------------------------------------------+ | ||
* | Ctrl | L1 | Alt | Enter | Alt | FN1 | FN2 | Ctrl | | ||
* \-----------------------------------------------------------------------------------------/ | ||
* | ||
*/ | ||
[_FN2_LAYER] = KEYMAP( /* Base */ | ||
KC_TILD, KC_AP2_BT1, KC_AP2_BT2, KC_AP2_BT3, KC_AP2_BT4, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_AP_LED_OFF, KC_AP_LED_ON, KC_AP_LED_NEXT_INTENSITY, KC_AP_LED_SPEED, KC_TRNS, | ||
KC_TRNS, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_TRNS, KC_TRNS, KC_PGUP, KC_UP, KC_PGDN, KC_PSCR, KC_TRNS, KC_TRNS, KC_TRNS, | ||
KC_CAPS, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_TRNS, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, KC_TRNS, KC_TRNS, | ||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
KC_TRNS, KC_TRNS, KC_TRNS, KC_ENT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
), | ||
}; | ||
const uint16_t keymaps_size = sizeof(keymaps); | ||
|
||
|
||
void matrix_init_user(void) { | ||
|
||
} | ||
|
||
void matrix_scan_user(void) { | ||
} | ||
|
||
layer_state_t layer_state_set_user(layer_state_t layer) { | ||
return layer; | ||
} |