summaryrefslogtreecommitdiff
path: root/keyboards/handwired/pill60/pill60.h
diff options
context:
space:
mode:
authorIkta <48316247+IktaS@users.noreply.github.com>2020-11-16 02:40:55 +0700
committerGitHub <noreply@github.com>2020-11-15 11:40:55 -0800
commite4236278b5b2dd84fb32e01cab5002b4597e7d35 (patch)
tree1b5f1e40148593ce2537c64460ee8ad3f6e7a604 /keyboards/handwired/pill60/pill60.h
parent81a17f4270d48e5377ca07d5ed5de60a4a7d0a70 (diff)
[Keyboard] added Pill60 to handwired/pill60 (#10798)
* added to handwired pill60 * Update keyboards/handwired/pill60/config.h and all other PR suggested changes Deleted DESCRIPTION Co-authored-by: Drashna Jaelre <drashna@live.com> Update keyboards/handwired/pill60/readme.md Smaller image in readme Co-authored-by: Drashna Jaelre <drashna@live.com> Update keyboards/handwired/pill60/info.json Deleted key_count Co-authored-by: Ryan <fauxpark@gmail.com> Update keyboards/handwired/pill60/keymaps/default/keymap.c Deleted backslash on keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> Update keyboards/handwired/pill60/pill60.h Deleted led.h Co-authored-by: Ryan <fauxpark@gmail.com> Update keyboards/handwired/pill60/blackpill_f401/rules.mk Update stm32f401 rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> Update keyboards/handwired/pill60/blackpill_f411/rules.mk Update stm32f411 rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> Update keyboards/handwired/pill60/bluepill/rules.mk Update bluepill rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> Update keyboards/handwired/pill60/rules.mk Added comment on rules.mk to help ] Co-authored-by: Ryan <fauxpark@gmail.com> deleted bootloader_defs.h added GPL2 + compatible license header updated keymap readme updated those that don't need common_config.h and deleted some unnecessary spaces in f411/rules.mk updated default folder in rules.mk * fix and simplify build files according to onekey example * Added GPL2+ Compatible license header
Diffstat (limited to 'keyboards/handwired/pill60/pill60.h')
-rw-r--r--keyboards/handwired/pill60/pill60.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/keyboards/handwired/pill60/pill60.h b/keyboards/handwired/pill60/pill60.h
new file mode 100644
index 0000000000..e020f1eb75
--- /dev/null
+++ b/keyboards/handwired/pill60/pill60.h
@@ -0,0 +1,42 @@
+ /* Copyright 2020 Imam Rafii
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+#pragma once
+
+#include "quantum.h"
+
+/* LAYOUT
+ ENCODER
+ ESC| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = |BCKS | DEL
+ TAB| Q | W | E | R | T | Y | U | I | O | P | [ | ] | \
+ CAP| A | S | D | F | G | H | J | K | L | ; | ' | ENTER
+ LSHFT| Z | X | C | V | B | N | M | , | . | / | RSHIF | FN
+ LCT| WIN| ALT| ESPACE | ALT| WIN | MN| RCT|
+*/
+
+#define LAYOUT( \
+ e00, \
+ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, \
+ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e, \
+ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2e, \
+ k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3e, \
+ k40, k41, k42, k47, k4a, k4b, k4c, k4e \
+) { \
+ { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d }, \
+ { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e }, \
+ { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2e, k0e }, \
+ { k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3e, KC_NO }, \
+ { k40, k41, k42, e00, KC_NO, KC_NO, k47, KC_NO, KC_NO, KC_NO, k4a, k4b, k4c, k4e }\
+}