aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Ong <the.onga@gmail.com>2019-01-28 12:05:34 +1100
committerDrashna Jaelre <drashna@live.com>2019-01-27 17:05:34 -0800
commit0d7631937018306b025cebd09cb33c55f965a5e6 (patch)
tree1526d0601aba8cbdc947572887fa1d153e62b381
parent996ada1ba2cce18e1fed27fdcaf6a5dcc36fe9da (diff)
downloadqmk_firmware-0d7631937018306b025cebd09cb33c55f965a5e6.tar.gz
qmk_firmware-0d7631937018306b025cebd09cb33c55f965a5e6.zip
[Keyboard] Added xealousbrown keyboard (#4945)
* Added xealousbrown keyboard. * Changed to pragma once in config.h * Update keyboards/handwired/xealousbrown/rules.mk Added bootloader. Co-Authored-By: alex-ong <the.onga@gmail.com> * Update keyboards/handwired/xealousbrown/config.h Commented out IS_COMMAND() since it is already default value. Co-Authored-By: alex-ong <the.onga@gmail.com>
-rw-r--r--keyboards/handwired/xealousbrown/README.md11
-rw-r--r--keyboards/handwired/xealousbrown/config.h51
-rw-r--r--keyboards/handwired/xealousbrown/info.json74
-rw-r--r--keyboards/handwired/xealousbrown/keymaps/default/keymap.c18
-rw-r--r--keyboards/handwired/xealousbrown/rules.mk60
-rw-r--r--keyboards/handwired/xealousbrown/xealousbrown.c8
-rw-r--r--keyboards/handwired/xealousbrown/xealousbrown.h20
7 files changed, 242 insertions, 0 deletions
diff --git a/keyboards/handwired/xealousbrown/README.md b/keyboards/handwired/xealousbrown/README.md
new file mode 100644
index 000000000..e6092ebb0
--- /dev/null
+++ b/keyboards/handwired/xealousbrown/README.md
@@ -0,0 +1,11 @@
1# XealouS Brown
2
3My first handwired keyboard. Originally used TMK, now ported in full glory to QMK.
4
5Build log at:
6https://sites.google.com/site/xaelous/keyboards/handwired-keyboard
7
8Make example for this keyboard (after setting up your build environment):
9
10 make handwired/xealous-brown:default
11
diff --git a/keyboards/handwired/xealousbrown/config.h b/keyboards/handwired/xealousbrown/config.h
new file mode 100644
index 000000000..53430849f
--- /dev/null
+++ b/keyboards/handwired/xealousbrown/config.h
@@ -0,0 +1,51 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17#pragma once
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0xFEED
23#define PRODUCT_ID 0x606A
24#define DEVICE_VER 0x0002
25#define MANUFACTURER XeaL
26#define PRODUCT XeaLous Brown Keyboard
27#define DESCRIPTION XeaLous Brown Keyboard
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 13
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42*/
43#define MATRIX_ROW_PINS { D3, D2, D1, D0, D4 }
44#define MATRIX_COL_PINS { C6, D7, E6, B4, B5, B6, B2, B3, B1, F7, F6, F5, F4 }
45#define UNUSED_PINS { }
46
47/* COL2ROW or ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50/* key combination for magic key command */
51// #define IS_COMMAND() ( keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
diff --git a/keyboards/handwired/xealousbrown/info.json b/keyboards/handwired/xealousbrown/info.json
new file mode 100644
index 000000000..c39e76217
--- /dev/null
+++ b/keyboards/handwired/xealousbrown/info.json
@@ -0,0 +1,74 @@
1{
2 "keyboard_name": "Xealous-Brown",
3 "url": "",
4 "maintainer": "qmk",
5 "width": 15,
6 "height": 5,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"`", "x":0, "y":0},
11 {"label":"1", "x":1, "y":0},
12 {"label":"2", "x":2, "y":0},
13 {"label":"3", "x":3, "y":0},
14 {"label":"4", "x":4, "y":0},
15 {"label":"5", "x":5, "y":0},
16 {"label":"6", "x":6, "y":0},
17 {"label":"7", "x":7, "y":0},
18 {"label":"8", "x":8, "y":0},
19 {"label":"9", "x":9, "y":0},
20 {"label":"0", "x":10, "y":0},
21 {"label":"-", "x":11, "y":0},
22 {"label":"=", "x":12, "y":0},
23 {"label":"Backspace", "x":13, "y":0, "w":2},
24 {"label":"Tab", "x":0, "y":1, "w":1.5},
25 {"label":"Q", "x":1.5, "y":1},
26 {"label":"W", "x":2.5, "y":1},
27 {"label":"E", "x":3.5, "y":1},
28 {"label":"R", "x":4.5, "y":1},
29 {"label":"T", "x":5.5, "y":1},
30 {"label":"Y", "x":6.5, "y":1},
31 {"label":"U", "x":7.5, "y":1},
32 {"label":"I", "x":8.5, "y":1},
33 {"label":"O", "x":9.5, "y":1},
34 {"label":"P", "x":10.5, "y":1},
35 {"label":"[", "x":11.5, "y":1},
36 {"label":"]", "x":12.5, "y":1},
37 {"label":"\\", "x":13.5, "y":1, "w":1.5},
38 {"label":"Caps Lock", "x":0, "y":2, "w":1.75},
39 {"label":"A", "x":1.75, "y":2},
40 {"label":"S", "x":2.75, "y":2},
41 {"label":"D", "x":3.75, "y":2},
42 {"label":"F", "x":4.75, "y":2},
43 {"label":"G", "x":5.75, "y":2},
44 {"label":"H", "x":6.75, "y":2},
45 {"label":"J", "x":7.75, "y":2},
46 {"label":"K", "x":8.75, "y":2},
47 {"label":"L", "x":9.75, "y":2},
48 {"label":";", "x":10.75, "y":2},
49 {"label":"'", "x":11.75, "y":2},
50 {"label":"Enter", "x":12.75, "y":2, "w":2.25},
51 {"label":"Shift", "x":0, "y":3, "w":2.25},
52 {"label":"Z", "x":2.25, "y":3},
53 {"label":"X", "x":3.25, "y":3},
54 {"label":"C", "x":4.25, "y":3},
55 {"label":"V", "x":5.25, "y":3},
56 {"label":"B", "x":6.25, "y":3},
57 {"label":"N", "x":7.25, "y":3},
58 {"label":"M", "x":8.25, "y":3},
59 {"label":",", "x":9.25, "y":3},
60 {"label":".", "x":10.25, "y":3},
61 {"label":"/", "x":11.25, "y":3},
62 {"label":"Shift", "x":12.25, "y":3, "w":2.75},
63 {"label":"Ctrl", "x":0, "y":4, "w":1.25},
64 {"label":"GUI", "x":1.25, "y":4, "w":1.25},
65 {"label":"Alt", "x":2.5, "y":4, "w":1.25},
66 {"label":"Space", "x":3.75, "y":4, "w":6.25},
67 {"label":"Alt", "x":10, "y":4, "w":1.25},
68 {"label":"GUI", "x":11.25, "y":4, "w":1.25},
69 {"label":"Menu", "x":12.5, "y":4, "w":1.25},
70 {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}
71 ]
72 }
73 }
74}
diff --git a/keyboards/handwired/xealousbrown/keymaps/default/keymap.c b/keyboards/handwired/xealousbrown/keymaps/default/keymap.c
new file mode 100644
index 000000000..6597c5667
--- /dev/null
+++ b/keyboards/handwired/xealousbrown/keymaps/default/keymap.c
@@ -0,0 +1,18 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT( /* Main layer */
5 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, \
6 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,\
7 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_ENTER, \
8 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_BSLS,
9 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_APP, KC_RCTL, KC_BSPC \
10 ),
11 [1] = LAYOUT( /* FN_Layer */
12 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, \
13 KC_CAPS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PGUP, KC_UP, KC_PGDN, KC_PSCR, KC_SLCK,KC_PAUS,\
14 KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_INS, KC_DEL, KC_TRNS, \
15 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_TRNS,KC_TRNS,
16 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL \
17 )
18};
diff --git a/keyboards/handwired/xealousbrown/rules.mk b/keyboards/handwired/xealousbrown/rules.mk
new file mode 100644
index 000000000..2bad9a1c6
--- /dev/null
+++ b/keyboards/handwired/xealousbrown/rules.mk
@@ -0,0 +1,60 @@
1
2# MCU name
3MCU = atmega32u4
4
5# Processor frequency.
6# This will define a symbol, F_CPU, in all source code files equal to the
7# processor frequency in Hz. You can then use this symbol in your source code to
8# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
9# automatically to create a 32-bit value in your source code.
10#
11# This will be an integer division of F_USB below, as it is sourced by
12# F_USB after it has run through any CPU prescalers. Note that this value
13# does not *change* the processor frequency - it should merely be updated to
14# reflect the processor speed set externally so that the code can use accurate
15# software delays.
16F_CPU = 16000000
17
18
19#
20# LUFA specific
21#
22# Target architecture (see library "Board Types" documentation).
23ARCH = AVR8
24
25# Input clock frequency.
26# This will define a symbol, F_USB, in all source code files equal to the
27# input clock frequency (before any prescaling is performed) in Hz. This value may
28# differ from F_CPU if prescaling is used on the latter, and is required as the
29# raw input clock is fed directly to the PLL sections of the AVR for high speed
30# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
31# at the end, this will be done automatically to create a 32-bit value in your
32# source code.
33#
34# If no clock division is performed on the input clock inside the AVR (via the
35# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
36F_USB = $(F_CPU)
37
38# Interrupt driven control endpoint task(+60)
39OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
40
41BOOTLOADER = caterina
42# Build Options
43# change yes to no to disable
44#
45BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
46MOUSEKEY_ENABLE = no # Mouse keys(+4700)
47EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
48CONSOLE_ENABLE = yes # Console for debug(+400)
49COMMAND_ENABLE = yes # Commands for debug and configuration
50# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
51SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
52# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
53NKRO_ENABLE = yes # USB Nkey Rollover
54BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
55MIDI_ENABLE = no # MIDI controls
56UNICODE_ENABLE = no # Unicode
57BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
58AUDIO_ENABLE = no # Audio output on port C6
59
60
diff --git a/keyboards/handwired/xealousbrown/xealousbrown.c b/keyboards/handwired/xealousbrown/xealousbrown.c
new file mode 100644
index 000000000..5c8e2fb18
--- /dev/null
+++ b/keyboards/handwired/xealousbrown/xealousbrown.c
@@ -0,0 +1,8 @@
1#include "xealousbrown.h"
2
3void matrix_init_kb(void) {
4 // put your keyboard start-up code here
5 // runs once when the firmware starts up
6
7 matrix_init_user();
8}
diff --git a/keyboards/handwired/xealousbrown/xealousbrown.h b/keyboards/handwired/xealousbrown/xealousbrown.h
new file mode 100644
index 000000000..ff449e432
--- /dev/null
+++ b/keyboards/handwired/xealousbrown/xealousbrown.h
@@ -0,0 +1,20 @@
1#ifndef XEALOUSBROWN_H
2#define XEALOUSBROWN_H
3
4#include "quantum.h"
5
6#define LAYOUT( \
7 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, \
8 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, \
9 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
10 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, \
11 K40, K41, K42, K45, K46, K47, K48, K49, K4C \
12 ) { \
13 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C }, \
14 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C }, \
15 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C }, \
16 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C }, \
17 { K40, K41, K42, KC_NO, KC_NO, K45, K46, K47, K48, K49, KC_NO, KC_NO, K4C } \
18}
19
20#endif