forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request qmk#13 from sadekbaroudi/fp/issue_012_config_frame…
…work issue 012: config framework
- Loading branch information
Showing
86 changed files
with
4,035 additions
and
1,153 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -33,3 +33,5 @@ | |
{ K30, K29, K28, K27, K26 }, \ | ||
{ KC_NO, KC_NO, K38, K37, K36 }, \ | ||
} | ||
|
||
#include "keyboards/fingerpunch/fp.h" |
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,2 @@ | ||
#define FP_LAYER_LIGHTING_MODE RGBLIGHT_MODE_SNAKE | ||
#define FP_LAYER_LIGHTING_CAPS_LOCK_MODE RGBLIGHT_MODE_SNAKE |
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,6 @@ | ||
SRC += keyboards/fingerpunch/fp.c \ | ||
keyboards/fingerpunch/fp_haptic.c \ | ||
keyboards/fingerpunch/fp_keyhandler.c \ | ||
keyboards/fingerpunch/fp_pointing.c \ | ||
keyboards/fingerpunch/fp_rgblight.c \ | ||
keyboards/fingerpunch/fp_rgb_matrix.c |
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,60 @@ | ||
# Adding fingerpunch feature support | ||
|
||
The purpose of this doc is mostly to make note to myself on adding the fingerpunch library support, as described in the README.md in this directory. | ||
|
||
That said, if you are looking to leverage the features, you may be able to follow these steps for your keyboard as well. Note that this is untested. | ||
|
||
## Required additions to the keyboard codebase | ||
|
||
1. Add the following line to your keyboard {keyboard_name}.h file, e.g. ffkb_byomcu.h | ||
|
||
`#include "keyboards/fingerpunch/fp.h"` | ||
|
||
2. Include the source files in your keyboard's `rules.mk` file | ||
|
||
Note that below is an example. You should check for the latest version of this code block as found in `keyboards/fingerpunch/ffkb_byomcu/rules.mk` | ||
|
||
```make | ||
SRC += keyboards/fingerpunch/fp.c \ | ||
keyboards/fingerpunch/fp_haptic.c \ | ||
keyboards/fingerpunch/fp_keyhandler.c \ | ||
keyboards/fingerpunch/fp_pointing.c \ | ||
keyboards/fingerpunch/fp_rgblight.c \ | ||
keyboards/fingerpunch/fp_rgb_matrix.c | ||
``` | ||
|
||
## Personal notes for Sadek's keymaps | ||
|
||
* Add the following to my keymap | ||
* `FP_SCROLL_TOG` (pointing) | ||
* `FP_SNIPE_TOG` (pointing) | ||
* `FP_SUPER_TAB` (replace `S_ALT_TAB` if it exists) | ||
* Change keymap mouse layer for pointing keyboards with pointing devices | ||
* `__________________MOUSE_1__________________` to `_______________AUTO_MOUSE_1________________` | ||
* Add the keyboard to my personal userspace `process_records.h` so that I can continue to use my own keycodes in addition to fingerpunch ones | ||
|
||
```C | ||
// Check to see which keyboard you're using, and define the PLACEHOLDER_SAFE_RANGE based on that. | ||
#if defined(KEYBOARD_fingerpunch_arachnophobe) \ | ||
|| defined(KEYBOARD_fingerpunch_barobord) \ | ||
|| defined(KEYBOARD_fingerpunch_barobord_byomcu) \ | ||
|| defined(KEYBOARD_fingerpunch_bgkeeb) \ | ||
|| defined(KEYBOARD_fingerpunch_bigbarobord) \ | ||
|| defined(KEYBOARD_fingerpunch_euclid36) \ | ||
|| defined(KEYBOARD_fingerpunch_euclid36_proto) \ | ||
|| defined(KEYBOARD_fingerpunch_ffkb) \ | ||
|| defined(KEYBOARD_fingerpunch_ffkb_byomcu_v1) \ | ||
|| defined(KEYBOARD_fingerpunch_ffkb_byomcu_v2) \ | ||
|| defined(KEYBOARD_fingerpunch_ffkb_byomcu_v3) \ | ||
|| defined(KEYBOARD_fingerpunch_luakeeb) \ | ||
|| defined(KEYBOARD_fingerpunch_pinkiesout) \ | ||
|| defined(KEYBOARD_fingerpunch_rockon_v1) \ | ||
|| defined(KEYBOARD_fingerpunch_rockon_v2) \ | ||
|| defined(KEYBOARD_fingerpunch_rockon_bp) \ | ||
|| defined(KEYBOARD_fingerpunch_sweeeeep) \ | ||
|| defined(KEYBOARD_fingerpunch_ximi) | ||
# define PLACEHOLDER_SAFE_RANGE FP_SAFE_RANGE | ||
#else | ||
# define PLACEHOLDER_SAFE_RANGE SAFE_RANGE | ||
#endif | ||
``` |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -39,3 +39,5 @@ | |
{ K36, K18, K29, K09, K1A, K2A }, \ | ||
{ K37, K28, K08, K19, K38, K27 }, \ | ||
} | ||
|
||
#include "keyboards/fingerpunch/fp.h" |
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
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
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
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
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
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 |
---|---|---|
|
@@ -22,3 +22,4 @@ | |
|
||
#define LAYOUT LAYOUT_split_3x5_4 | ||
|
||
#include "keyboards/fingerpunch/fp.h" |
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
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
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
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
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
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
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
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,6 @@ | ||
SRC += keyboards/fingerpunch/fp.c \ | ||
keyboards/fingerpunch/fp_haptic.c \ | ||
keyboards/fingerpunch/fp_keyhandler.c \ | ||
keyboards/fingerpunch/fp_pointing.c \ | ||
keyboards/fingerpunch/fp_rgblight.c \ | ||
keyboards/fingerpunch/fp_rgb_matrix.c |
Oops, something went wrong.