diff options
author | Danny Nguyen <danny@keeb.io> | 2017-12-20 10:58:28 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-01-25 00:58:59 -0500 |
commit | 9a91b42e922ed152cb548c529233cf7f2b6d5183 (patch) | |
tree | e51b8f46e9b06deee26b95d28fa1c726973f627e /keyboards/chocopad/chocopad.h | |
parent | c73514a2b7284df51b8c6acd416e3fcb01dcbdc7 (diff) | |
download | firmware-9a91b42e922ed152cb548c529233cf7f2b6d5183.tar.gz firmware-9a91b42e922ed152cb548c529233cf7f2b6d5183.tar.bz2 firmware-9a91b42e922ed152cb548c529233cf7f2b6d5183.zip |
Add Chocopad keyboard
Diffstat (limited to 'keyboards/chocopad/chocopad.h')
-rw-r--r-- | keyboards/chocopad/chocopad.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/keyboards/chocopad/chocopad.h b/keyboards/chocopad/chocopad.h new file mode 100644 index 000000000..329e2d56f --- /dev/null +++ b/keyboards/chocopad/chocopad.h @@ -0,0 +1,32 @@ +#ifndef CHOCOPAD_H +#define CHOCOPAD_H + +#include "quantum.h" + +#define KEYMAP( \ + A1, A2, A3, A4, \ + B1, B2, B3, B4, \ + C1, C2, C3, C4, \ + D1, D2, D3, D4 \ +) { \ + { A1, A2, A3, A4 }, \ + { B1, B2, B3, B4 }, \ + { C1, C2, C3, C4 }, \ + { D1, D2, D3, D4 } \ +} + +// Used to create a keymap using only KC_ prefixed keys +#define KC_KEYMAP( \ + A1, A2, A3, A4, \ + B1, B2, B3, B4, \ + C1, C2, C3, C4, \ + D1, D2, D3, D4 \ +) \ + KEYMAP( \ + KC_##A1, KC_##A2, KC_##A3, KC_##A4, \ + KC_##B1, KC_##B2, KC_##B3, KC_##B4, \ + KC_##C1, KC_##C2, KC_##C3, KC_##C4, \ + KC_##D1, KC_##D2, KC_##D3, KC_##D4 \ + ) + +#endif |