aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/lets_split
Commit message (Expand)AuthorAgeFilesLines
* added case stl from se7en9057climbalima2016-12-194-0/+17931
* better switch spacing in svgclimbalima2016-12-141-1859/+119
* svg bug fix and added pilcrow to hand wireclimbalima2016-12-121-9/+9
* changed svg after mergeclimbalima2016-12-101-470/+470
* Merge branch 'master' of https://github.com/jackhumbert/qmk_firmwareclimbalima2016-12-103-3/+4
|\
| * Merge pull request #932 from climbalima/masterJack Humbert2016-12-041-0/+5809
| |\
| * \ merging lets_splitJack Humbert2016-11-2115-128/+362
| |\ \
| * | | rgb light through midiJack Humbert2016-11-173-3/+3
* | | | changed svg to support proto pcbclimbalima2016-12-101-474/+482
| |_|/ |/| |
* | | Merge branch 'master' of https://github.com/jackhumbert/qmk_firmwareclimbalima2016-12-031-0/+5809
| |/ |/|
* | should have fixed conflixedclimbalima2016-11-1610-177/+7
* | Merge https://github.com/climbalima/qmk_firmwareclimbalima2016-11-1610-28/+170
|\ \
| * | fixed conflictclimbalima2016-11-141-3/+0
| * | fixed extra pasteclimbalima2016-11-141-3/+2
| * | Merge branch 'master' of https://github.com/climbalima/qmk_firmwareclimbalima2016-11-101-2/+19
| |\ \
| | * | returned to oclimbalima2016-11-101-4/+4
| * | | Added both revisions into one folderclimbalima2016-11-1011-101/+327
| |/ /
| * | Changes to be committed:climbalima2016-11-104-68/+13
* | | Updated my repo to current qmkclimbalima2016-11-1615-98/+359
| |/ |/|
* | added notes on using Arduino Pro Micro 3.3V with Let’s SplitYin Shanyang2016-10-241-0/+13
* | Fix lets_split.c so that audio can be disabledDustin2016-09-251-3/+5
* | Created I2C and Serial keymaps for unit testingIBNobody2016-09-204-0/+632
* | Made Serial and I2C not include the OtherIBNobody2016-09-206-14/+36
* | Merge branch 'master' into makefile_overhaulFred Sundvik2016-08-251-32/+32
|\ \
| * | Fixed naming of Analog pins to differentiate them from DIO pins used by Quant...IBNobody2016-08-251-32/+32
* | | Split keyboard makefiles into rules and MakefileFred Sundvik2016-08-202-76/+75
|/ /
* | Fixes midi functionalityJack Humbert2016-07-241-2/+2
* | updates rgblight implementation, makes non-timer stuff compatible with audioJack Humbert2016-07-071-3/+2
|/
* default keymap, reset sorted out for now, added serial to makefileJack Humbert2016-07-065-41/+202
* adds eep, removes usbconfig.hJack Humbert2016-07-063-377/+4
* remove uno_slave for now, even though it's freakin coolJack Humbert2016-07-055-448/+0
* add options to config.hJack Humbert2016-07-051-2/+5
* images, docks, clean-up [skip ci]Jack Humbert2016-07-0513-2/+367
* i2c workingJack Humbert2016-07-0518-0/+2055
ault prefix to a nested session | |T + R|tmux| switch pane and repeat last command | |V + Z|vim | zoom current split| |V + R|vim | search and replace| |V + T|vim | move current split to its own tab| |3x Backspace|keyboard| Reset Keyboard | `LEADER_DICTIONARY()` is defined in *leader.c* ## [Combo Keys](#combo-keys) To enable set `COMBO_ENABLE = yes` in file *rules.mk*. Number of combos and timeout are defined in *config.h* Press key chord to use. |Combo|description | |---|---| | CV | Paste | | XC | Cut | | ZV | Copy | | QP | KC_SLEEP | Combos are defined in *combo.h* and *combo.c* ## [Unicode](#unicode) To enable set `UNICODE_ENABLE = yes` or `UNICODEMAP_ENABLE = yes` in file *rules.mk* ## [Encoders](#encoders) To enable set `ENCODER_ENABLE = yes` in *rules.mk*. In the keyboard's *config.h* adjust according to your keyboard: ```c // Example ProMicro #define ENCODERS_PAD_A { F4 } //PIN A3 #define ENCODERS_PAD_B { F5 } //PIN A2 ``` Check the [documentation](https://docs.qmk.fm/#/feature_encoders) for more information The first rotary encoder is configured such as: |Modifier|description| |---|---| | None | General navigation. Page up/down | | SHIFT | Fast navigation. Home/end | | CTRL | Vertical navigation. Up/down | | CTRL+SHIFT | Horizontal navigation. Left/right | | ALT | Audio volume control. | | GUI | Browser navigation(windows). Forward/backward | | ALT+SHIFT | Form navigation. Tab up/down | | ALT+CTRL | Media control. (Play|pause)/mute | | HYPER | Media navigation. Next/prev track | Key codes are stored as `uint16_t encoder_actions[2][9]` in *encoder.c* ## Diablo Layer Currently not in use. [Back to Top](#table-of-contents) # [Secret Macros](#secret-macros) To enable set `NO_SECRETS = yes` in *rules.mk*. With help from gitter and Colinta, this adds the ability to add hidden macros from other users. First, I have several files that are hidden/excluded from Git/GitHub. These contain everything needed for the macros. To hide these files, open *.git/info/exclude* and add `secrets.c` and `secrets.h` to that file, below the comments. And this requires `KC_SECRET_1` through `KC_SECRET_5` to be defined in your *<name>.h* file to define the keycodes for the new macros. ### .git/info/exclude ```console # git ls-files --others --exclude-from=.git/info/exclude # Lines that start with '#' are comments. # For a project mostly in C, the following would be a good set of # exclude patterns (uncomment them if you want to use them): # *.[oa] # *~ /users/<name>/secrets.c /users/<name>/secrets.h ``` Then you can create these files: ### secrets.c ```c #include "<name>.h" // replace <name> with your keymap's "h" file, or whatever file stores the keycodes #if (__has_include("secrets.h") && !defined(NO_SECRETS)) #include "secrets.h" #else // `PROGMEM const char secret[][x]` may work better, but it takes up more space in the firmware // And I'm not familiar enough to know which is better or why... static const char * const secret[] = { "test1", "test2", "test3", "test4", "test5" }; #endif bool process_record_secrets(uint16_t keycode, keyrecord_t *record) { switch (keycode) { case KC_SECRET_1 ... KC_SECRET_5: // Secrets! Externally defined strings, not stored in repo if (!record->event.pressed) { clear_oneshot_layer_state(ONESHOT_OTHER_KEY_PRESSED); send_string_with_delay(secret[keycode - KC_SECRET_1], MACRO_TIMER); } return false; break; } return true; } ``` ### secrets.h ```c static const char * const secrets[] = { "secret1", "secret2", "secret3", "secret4", "secret5" }; ``` Replacing the strings with the codes that you need. ### name.c In the *<name>.c* file, you will want to add this to the top: ```c __attribute__ ((weak)) bool process_record_secrets(uint16_t keycode, keyrecord_t *record) { return true; } ``` This is so that the function can be called here, and replaced in the `secrets.c` file, and so it won't error out if it doesn't exist. And then, in the `process_record_user` function, assuming you have `return process_record_keymap(keycode, record)` here, you'll want to replace the "final" return with the following. Otherwise, you want to replace the `return true;` with `return process_record_secrets(keycode, record);` ```c return process_record_keymap(keycode, record) && process_record_secrets(keycode, record); } ``` ### rules.mk Here, you want your */users/<name>/rules.mk* file to "detect" the existence of the *secrets.c* file, and only add it if the file exists. To do so, add this block: ```make ifneq ("$(wildcard $(USER_PATH)/secrets.c)","") SRC += secrets.c endif ``` Additionally, if you want to make sure that you can disable the function without messing with the file, you need to add this to your */users/<name>/rules.mk*, so that it catches the flag: ```make ifeq ($(strip $(NO_SECRETS)), yes) OPT_DEFS += -DNO_SECRETS endif ``` Then, if you run `make keyboard:name NO_SECRETS=yes`, it will default to the test strings in your *<name>.c* file, rather than reading from your file. [Back to Top](#table-of-contents)