mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-24 18:39:53 +00:00
More documentation
This commit is contained in:
parent
af6163f934
commit
eb99e515b3
@ -10,7 +10,19 @@ doing sundry experimentation:
|
|||||||
* To figure things out about the toolset
|
* To figure things out about the toolset
|
||||||
* I'm an Emacs guy, so will be needing a fair bit of tuning
|
* I'm an Emacs guy, so will be needing a fair bit of tuning
|
||||||
* It made sense to mess around some with keyboard maps.
|
* It made sense to mess around some with keyboard maps.
|
||||||
- I added Workman alongside Dvorak and Colemak
|
- I tried added Workman alongside Dvorak and Colemak
|
||||||
- Boy, oh boy, these don't help
|
- Boy, oh boy, these don't help!!!
|
||||||
- I have done 30 years of learning of Emacs key mappings, and these alternative keyboards massively mess me up
|
- I have done 30 years of learning of Emacs key mappings, and
|
||||||
- I added a keypad, originally based on keymaps/numpad.c, but mighty substantially revised, as that one seems to be rotated 90 degrees from usual conventions for number pads
|
these alternative keyboards massively mess me up
|
||||||
|
- I added a keypad, originally based on keymaps/numpad.c, but
|
||||||
|
mighty substantially revised, as that one seems to be rotated 90
|
||||||
|
degrees from usual conventions for number pads
|
||||||
|
* The keypad layer also includes some sample "hacks" of cool things,
|
||||||
|
all using actions attached in using the function action_get_macro()
|
||||||
|
- Key [1][2] aka "q" types out my name, cbbrowne, as a fun example
|
||||||
|
of a key generating a bunch of keystrokes. The keystroke is
|
||||||
|
sufficiently inconvenient that it isn't terribly practical for me
|
||||||
|
to use it, but hey, it shows how others might use this facility
|
||||||
|
in a more useful context.
|
||||||
|
- Key [2][2] aka "a" uses a random number generator to select a digit 0-9 at random
|
||||||
|
- Key [3][2] aka "z" uses a random number generator to select a letter a-z at random
|
||||||
|
@ -99,10 +99,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
{KC_TRNS, DF(_KP), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY}
|
{KC_TRNS, DF(_KP), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY}
|
||||||
},
|
},
|
||||||
[_KP] = { /* Key Pad */
|
[_KP] = { /* Key Pad */
|
||||||
{KC_ESC, M(M_USERNAME), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_KP_ENTER, KC_KP_PLUS, KC_KP_PLUS, KC_KP_ENTER, KC_BSPC},
|
{KC_ESC, M(M_USERNAME), KC_F9, KC_F10, KC_F11, KC_F12, KC_PGUP, KC_KP_ENTER, KC_7, KC_8, KC_9, KC_BSPC},
|
||||||
{KC_LCTL, M(M_RANDDIGIT), KC_S, KC_D, KC_F, KC_G, KC_H, KC_KP_MINUS, KC_7, KC_8, KC_9, KC_ENT},
|
{KC_LCTL, M(M_RANDDIGIT), KC_F5, KC_F6, KC_F7, KC_F8, KC_PGDN, KC_KP_MINUS, KC_4, KC_5, KC_6, KC_PIPE},
|
||||||
{KC_LSFT, M(M_RANDLETTER), KC_X, KC_C, KC_V, KC_B, KC_N, KC_KP_PLUS, KC_4, KC_5, KC_6, KC_DOT},
|
{KC_LSFT, M(M_RANDLETTER), KC_F1, KC_F2, KC_F3, KC_F4, KC_DEL, KC_KP_PLUS, KC_1, KC_2, KC_3, KC_ENTER},
|
||||||
{BL_STEP, M(M_LED), KC_LALT, KC_LGUI, KC_NO, KC_SPC, KC_SPC, DF(_QW), KC_1, KC_2, KC_3, KC_0}
|
{BL_STEP, M(M_LED), KC_LALT, KC_LGUI, KC_NO, KC_SPC, KC_SPC, DF(_QW), KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ const uint16_t PROGMEM fn_actions[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* This bit of logic seeds a wee linear congruential random number generator */
|
/* This bit of logic seeds a wee linear congruential random number generator */
|
||||||
|
/* lots of prime numbers everywhere... */
|
||||||
static uint16_t random_value = 157;
|
static uint16_t random_value = 157;
|
||||||
#define randadd 53
|
#define randadd 53
|
||||||
#define randmul 181
|
#define randmul 181
|
||||||
|
Loading…
Reference in New Issue
Block a user