summaryrefslogtreecommitdiffstats
path: root/keyboards/ps2avrGB/bfake
diff options
context:
space:
mode:
authorSebastian Kaim <Sebb767@users.noreply.github.com>2017-10-26 01:01:02 +0200
committerJack Humbert <jack.humb@gmail.com>2017-10-26 01:01:02 +0200
commit7b754e1a5a902abd51ad314c68ef1606d89adf95 (patch)
treeeb8fecbc71b42df565a4ebe0f82f8c196935ef4e /keyboards/ps2avrGB/bfake
parenta3f53aeaa12e6e6ce9b5087ded35f5e3af4f3190 (diff)
downloadqmk_firmware-7b754e1a5a902abd51ad314c68ef1606d89adf95.tar.gz
qmk_firmware-7b754e1a5a902abd51ad314c68ef1606d89adf95.tar.xz
added bfake support as a subproject (#1903)
* added bfake support as a subproject also moved existing bmini stuff to a subproject fixed columns minor keymap update making this a subproject remove old stuff got subproject stuff figured out * travis was upset because a board didn't have a default keymap
Diffstat (limited to 'keyboards/ps2avrGB/bfake')
-rw-r--r--keyboards/ps2avrGB/bfake/bfake.h41
-rw-r--r--keyboards/ps2avrGB/bfake/config.h34
-rw-r--r--keyboards/ps2avrGB/bfake/keymaps/default/keymap.c43
-rw-r--r--keyboards/ps2avrGB/bfake/rules.mk0
4 files changed, 118 insertions, 0 deletions
diff --git a/keyboards/ps2avrGB/bfake/bfake.h b/keyboards/ps2avrGB/bfake/bfake.h
new file mode 100644
index 000000000..7d26a369a
--- /dev/null
+++ b/keyboards/ps2avrGB/bfake/bfake.h
@@ -0,0 +1,41 @@
+/*
+Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com>
+
+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/>.
+*/
+
+#ifndef BFAKE_H
+#define BFAKE_H
+
+#include "quantum.h"
+#include "ps2avrGB.h"
+
+#define KEYMAP( \
+ K61, K71, K72, K73, K74, K64, K65, K75, K76, K77, K78, K68, K66, K10, K60,\
+ K11, K01, K02, K03, K04, K14, K15, K05, K06, K07, K08, K18, K16, K20, \
+ K12, K21, K22, K23, K24, K34, K35, K25, K26, K27, K28, K38, K40, \
+ K19, K13, K41, K42, K43, K44, K54, K55, K45, K46, K47, K58, K49, K50,\
+ K09, K00, K39, K30, K59, K69, K37, K29\
+){ \
+ { KC_NO, K01, K02, K03, K04, K05, K06, K07, K08, K09, K00}, \
+ { KC_NO, K11, K12, K13, K14, K15, K16, KC_NO, K18, K19, K10}, \
+ { KC_NO, K21, K22, K23, K24, K25, K26, K27, K28, K29, K20}, \
+ { KC_NO, KC_NO, KC_NO, KC_NO, K34, K35, KC_NO, K37, K38, K39, K30}, \
+ { KC_NO, K41, K42, K43, K44, K45, K46, K47, KC_NO, K49, K40}, \
+ { KC_NO, KC_NO, KC_NO, KC_NO, K54, K55, KC_NO, KC_NO, K58, K59, K50}, \
+ { KC_NO, K61, KC_NO, KC_NO, K64, K65, K66, KC_NO, K68, K69, K60}, \
+ { KC_NO, K71, K72, K73, K74, K75, K76, K77, K78, KC_NO, KC_NO}, \
+}
+
+#endif
diff --git a/keyboards/ps2avrGB/bfake/config.h b/keyboards/ps2avrGB/bfake/config.h
new file mode 100644
index 000000000..3559a12da
--- /dev/null
+++ b/keyboards/ps2avrGB/bfake/config.h
@@ -0,0 +1,34 @@
+/*
+Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com>
+
+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/>.
+*/
+#ifndef BFAKE_CONFIG_H
+#define BFAKE_CONFIG_H
+
+#include "config_common.h"
+
+#define MANUFACTURER NotActuallyWinkeyless
+
+#define MATRIX_ROWS 8
+#define MATRIX_COLS 11
+
+#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6, B7 }
+#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6}
+#define UNUSED_PINS
+
+#define DIODE_DIRECTION COL2ROW
+#define DEBOUNCING_DELAY 5
+
+#endif
diff --git a/keyboards/ps2avrGB/bfake/keymaps/default/keymap.c b/keyboards/ps2avrGB/bfake/keymaps/default/keymap.c
new file mode 100644
index 000000000..239fdf427
--- /dev/null
+++ b/keyboards/ps2avrGB/bfake/keymaps/default/keymap.c
@@ -0,0 +1,43 @@
+/*
+Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com>
+
+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/>.
+*/
+
+#include "bfake.h"
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = KEYMAP(
+ KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV,
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC,
+ MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
+ KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1),
+ KC_LCTL, KC_LGUI, KC_LALT, KC_SPACE, KC_RALT, KC_RGUI, KC_MENU, KC_RCTL
+ ),
+ [1] = KEYMAP(
+ KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_END, KC_DEL,
+ MO(1), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PGUP, KC_PGDN, KC_TRNS, KC_TRNS, MO(2),
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ ),
+ [2] = KEYMAP(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ MO(1), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ ),
+};
+
diff --git a/keyboards/ps2avrGB/bfake/rules.mk b/keyboards/ps2avrGB/bfake/rules.mk
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/keyboards/ps2avrGB/bfake/rules.mk