diff options
-rw-r--r-- | keyboards/evil80/config.h | 64 | ||||
-rw-r--r-- | keyboards/evil80/evil80.c | 47 | ||||
-rw-r--r-- | keyboards/evil80/evil80.h | 23 | ||||
-rw-r--r-- | keyboards/evil80/info.json | 13 | ||||
-rw-r--r-- | keyboards/evil80/keymaps/default/keymap.c | 31 | ||||
-rw-r--r-- | keyboards/evil80/rules.mk | 68 |
6 files changed, 246 insertions, 0 deletions
diff --git a/keyboards/evil80/config.h b/keyboards/evil80/config.h new file mode 100644 index 000000000..81138a770 --- /dev/null +++ b/keyboards/evil80/config.h | |||
@@ -0,0 +1,64 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "config_common.h" | ||
4 | |||
5 | /* USB Device descriptor parameter */ | ||
6 | #define VENDOR_ID 0xFEED | ||
7 | #define PRODUCT_ID 0x6060 | ||
8 | #define DEVICE_VER 0x0001 | ||
9 | #define MANUFACTURER Evil | ||
10 | #define PRODUCT Evil80 | ||
11 | #define DESCRIPTION QMK keyboard firmware for Evil80 | ||
12 | |||
13 | /* key matrix size */ | ||
14 | #define MATRIX_ROWS 6 | ||
15 | #define MATRIX_COLS 16 | ||
16 | |||
17 | /* Planck PCB default pin-out */ | ||
18 | #define MATRIX_ROW_PINS { F1, F4, F5, F0, B3, B0 } | ||
19 | #define MATRIX_COL_PINS { B2, D0, D1, D2, D3, D5, D4, D6, D7, B4, B1, C6, C7, E6, F6, F7 } | ||
20 | #define UNUSED_PINS | ||
21 | |||
22 | #define BACKLIGHT_PIN B5 | ||
23 | #define BACKLIGHT_BREATHING | ||
24 | |||
25 | /* COL2ROW or ROW2COL */ | ||
26 | #define DIODE_DIRECTION COL2ROW | ||
27 | |||
28 | /* define if matrix has ghost */ | ||
29 | //#define MATRIX_HAS_GHOST | ||
30 | |||
31 | /* number of backlight levels */ | ||
32 | #define BACKLIGHT_LEVELS 3 | ||
33 | |||
34 | /* Set 0 if debouncing isn't needed */ | ||
35 | #define DEBOUNCING_DELAY 5 | ||
36 | |||
37 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
38 | #define LOCKING_SUPPORT_ENABLE | ||
39 | |||
40 | /* Locking resynchronize hack */ | ||
41 | #define LOCKING_RESYNC_ENABLE | ||
42 | |||
43 | /* key combination for command */ | ||
44 | #define IS_COMMAND() ( \ | ||
45 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
46 | ) | ||
47 | |||
48 | /* | ||
49 | * Feature disable options | ||
50 | * These options are also useful to firmware size reduction. | ||
51 | */ | ||
52 | |||
53 | /* disable debug print */ | ||
54 | //#define NO_DEBUG | ||
55 | |||
56 | /* disable print */ | ||
57 | //#define NO_PRINT | ||
58 | |||
59 | /* disable action features */ | ||
60 | //#define NO_ACTION_LAYER | ||
61 | //#define NO_ACTION_TAPPING | ||
62 | //#define NO_ACTION_ONESHOT | ||
63 | //#define NO_ACTION_MACRO | ||
64 | //#define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/evil80/evil80.c b/keyboards/evil80/evil80.c new file mode 100644 index 000000000..d4653d049 --- /dev/null +++ b/keyboards/evil80/evil80.c | |||
@@ -0,0 +1,47 @@ | |||
1 | #include "evil80.h" | ||
2 | void matrix_init_kb(void) { | ||
3 | // put your keyboard start-up code here | ||
4 | // runs once when the firmware starts up | ||
5 | led_init_ports(); | ||
6 | matrix_init_user(); | ||
7 | } | ||
8 | |||
9 | void matrix_scan_kb(void) { | ||
10 | // put your looping keyboard code here | ||
11 | // runs every cycle (a lot) | ||
12 | |||
13 | matrix_scan_user(); | ||
14 | } | ||
15 | |||
16 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
17 | // put your per-action keyboard code here | ||
18 | // runs for every action, just before processing by the firmware | ||
19 | |||
20 | return process_record_user(keycode, record); | ||
21 | } | ||
22 | |||
23 | void led_init_ports(void) { | ||
24 | DDRB |= (1<<6) | (1<<7); // OUT | ||
25 | } | ||
26 | |||
27 | void led_set_kb(uint8_t usb_led) { | ||
28 | if (usb_led & (1<<USB_LED_CAPS_LOCK)) | ||
29 | { | ||
30 | PORTB |= (1<<6); // HI | ||
31 | } | ||
32 | else | ||
33 | { | ||
34 | PORTB &= ~(1<<6); // LO | ||
35 | } | ||
36 | |||
37 | if (usb_led & (1<<USB_LED_SCROLL_LOCK)) | ||
38 | { | ||
39 | PORTB |= (1<<7); // HI | ||
40 | } | ||
41 | else | ||
42 | { | ||
43 | PORTB &= ~(1<<7); // LO | ||
44 | } | ||
45 | |||
46 | led_set_user(usb_led); | ||
47 | } | ||
diff --git a/keyboards/evil80/evil80.h b/keyboards/evil80/evil80.h new file mode 100644 index 000000000..a880de98f --- /dev/null +++ b/keyboards/evil80/evil80.h | |||
@@ -0,0 +1,23 @@ | |||
1 | #ifndef EVIL80_H | ||
2 | #define EVIL80_H | ||
3 | |||
4 | #include "quantum.h" | ||
5 | |||
6 | #define LAYOUT( \ | ||
7 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \ | ||
8 | K500, K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, \ | ||
9 | K501, K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, \ | ||
10 | K502, K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, \ | ||
11 | K503, K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K414, \ | ||
12 | K504, K505, K506, K507, K509, K510, K511, K512, K513, K514, K515 \ | ||
13 | ) \ | ||
14 | { \ | ||
15 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015 }, \ | ||
16 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115 }, \ | ||
17 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215 }, \ | ||
18 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, KC_NO, KC_NO, KC_NO }, \ | ||
19 | { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, KC_NO, K414, KC_NO }, \ | ||
20 | { K500, K501, K502, K503, K504, K505, K506, K507, KC_NO, K509, K510, K511, K512, K513, K514, K515 } \ | ||
21 | } | ||
22 | |||
23 | #endif | ||
diff --git a/keyboards/evil80/info.json b/keyboards/evil80/info.json new file mode 100644 index 000000000..8b3b4cd0d --- /dev/null +++ b/keyboards/evil80/info.json | |||
@@ -0,0 +1,13 @@ | |||
1 | { | ||
2 | "keyboard_name": "Evil80", | ||
3 | "url": "", | ||
4 | "maintainer": "qmk", | ||
5 | "width": 18.25, | ||
6 | "height": 6.5, | ||
7 | "layouts": { | ||
8 | "LAYOUT": { | ||
9 | "key_count": 90, | ||
10 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":2, "y":0}, {"label":"F2", "x":3, "y":0}, {"label":"F3", "x":4, "y":0}, {"label":"F4", "x":5, "y":0}, {"label":"F5", "x":6.5, "y":0}, {"label":"F6", "x":7.5, "y":0}, {"label":"F7", "x":8.5, "y":0}, {"label":"F8", "x":9.5, "y":0}, {"label":"F9", "x":11, "y":0}, {"label":"F10", "x":12, "y":0}, {"label":"F11", "x":13, "y":0}, {"label":"F12", "x":14, "y":0}, {"label":"PrtSc", "x":15.25, "y":0}, {"label":"Scroll Lock", "x":16.25, "y":0}, {"label":"Pause", "x":17.25, "y":0}, {"label":"~", "x":0, "y":1.5}, {"label":"!", "x":1, "y":1.5}, {"label":"@", "x":2, "y":1.5}, {"label":"#", "x":3, "y":1.5}, {"label":"$", "x":4, "y":1.5}, {"label":"%", "x":5, "y":1.5}, {"label":"^", "x":6, "y":1.5}, {"label":"&", "x":7, "y":1.5}, {"label":"*", "x":8, "y":1.5}, {"label":"(", "x":9, "y":1.5}, {"label":")", "x":10, "y":1.5}, {"label":"_", "x":11, "y":1.5}, {"label":"+", "x":12, "y":1.5}, {"label":"Backspace", "x":13, "y":1.5, "w":2}, {"label":"Insert", "x":15.25, "y":1.5}, {"label":"Home", "x":16.25, "y":1.5}, {"label":"PgUp", "x":17.25, "y":1.5}, {"label":"Tab", "x":0, "y":2.5, "w":1.5}, {"label":"Q", "x":1.5, "y":2.5}, {"label":"W", "x":2.5, "y":2.5}, {"label":"E", "x":3.5, "y":2.5}, {"label":"R", "x":4.5, "y":2.5}, {"label":"T", "x":5.5, "y":2.5}, {"label":"Y", "x":6.5, "y":2.5}, {"label":"U", "x":7.5, "y":2.5}, {"label":"I", "x":8.5, "y":2.5}, {"label":"O", "x":9.5, "y":2.5}, {"label":"P", "x":10.5, "y":2.5}, {"label":"{", "x":11.5, "y":2.5}, {"label":"}", "x":12.5, "y":2.5}, {"label":"|", "x":13.5, "y":2.5, "w":1.5}, {"label":"Delete", "x":15.25, "y":2.5}, {"label":"End", "x":16.25, "y":2.5}, {"label":"PgDn", "x":17.25, "y":2.5}, {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, {"label":"A", "x":1.75, "y":3.5}, {"label":"S", "x":2.75, "y":3.5}, {"label":"D", "x":3.75, "y":3.5}, {"label":"F", "x":4.75, "y":3.5}, {"label":"G", "x":5.75, "y":3.5}, {"label":"H", "x":6.75, "y":3.5}, {"label":"J", "x":7.75, "y":3.5}, {"label":"K", "x":8.75, "y":3.5}, {"label":"L", "x":9.75, "y":3.5}, {"label":":", "x":10.75, "y":3.5}, {"label":"\"", "x":11.75, "y":3.5}, {"x":12.75, "y":3.5}, {"label":"Enter", "x":13.75, "y":3.5, "w":1.25}, {"label":"Shift", "x":0, "y":4.5, "w":1.25}, {"x":1.25, "y":4.5}, {"label":"Z", "x":2.25, "y":4.5}, {"label":"X", "x":3.25, "y":4.5}, {"label":"C", "x":4.25, "y":4.5}, {"label":"V", "x":5.25, "y":4.5}, {"label":"B", "x":6.25, "y":4.5}, {"label":"N", "x":7.25, "y":4.5}, {"label":"M", "x":8.25, "y":4.5}, {"label":"<", "x":9.25, "y":4.5}, {"label":">", "x":10.25, "y":4.5}, {"label":"?", "x":11.25, "y":4.5}, {"label":"Shift", "x":12.25, "y":4.5, "w":1.75}, {"x":14, "y":4.5}, {"label":"\u2191", "x":16.25, "y":4.5}, {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, {"label":"Win", "x":1.25, "y":5.5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, {"x":3.75, "y":5.5, "w":6.25}, {"label":"Alt", "x":10, "y":5.5, "w":1.25}, {"label":"Win", "x":11.25, "y":5.5, "w":1.25}, {"label":"Menu", "x":12.5, "y":5.5, "w":1.25}, {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, {"label":"\u2190", "x":15.25, "y":5.5}, {"label":"\u2193", "x":16.25, "y":5.5}, {"label":"\u2192", "x":17.25, "y":5.5}] | ||
11 | } | ||
12 | } | ||
13 | } \ No newline at end of file | ||
diff --git a/keyboards/evil80/keymaps/default/keymap.c b/keyboards/evil80/keymaps/default/keymap.c new file mode 100644 index 000000000..1706517a2 --- /dev/null +++ b/keyboards/evil80/keymaps/default/keymap.c | |||
@@ -0,0 +1,31 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
4 | /* 0: Winkey */ | ||
5 | LAYOUT( | ||
6 | KC_ESC, 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_PSCR,KC_SLCK,KC_PAUS,\ | ||
7 | KC_GRV, 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_BSPC, KC_INS,KC_HOME,KC_PGUP,\ | ||
8 | 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_BSLS, KC_DEL, KC_END,KC_PGDN,\ | ||
9 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L,KC_SCLN,KC_QUOT,KC_NUHS, KC_ENT, \ | ||
10 | KC_LSFT,KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH,KC_RSFT, MO(2), KC_UP, \ | ||
11 | KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT \ | ||
12 | ), | ||
13 | /* 1: Winkeyless */ | ||
14 | LAYOUT( | ||
15 | KC_ESC, 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_PSCR,KC_SLCK,KC_PAUS,\ | ||
16 | KC_GRV, 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_BSPC, KC_INS,KC_HOME,KC_PGUP,\ | ||
17 | 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_BSLS, KC_DEL, KC_END,KC_PGDN,\ | ||
18 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L,KC_SCLN,KC_QUOT,KC_NUHS, KC_ENT, \ | ||
19 | KC_LSFT,KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH,KC_RSFT, MO(2), KC_UP, \ | ||
20 | KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_NO,KC_RALT,KC_RGUI,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT \ | ||
21 | ), | ||
22 | /* 2: Fn */ | ||
23 | LAYOUT( | ||
24 | KC_TRNS, BL_ON, BL_OFF,BL_STEP,BL_BRTG,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,\ | ||
25 | 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,\ | ||
26 | 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,\ | ||
27 | 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, \ | ||
28 | 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, \ | ||
29 | KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS \ | ||
30 | ), | ||
31 | }; | ||
diff --git a/keyboards/evil80/rules.mk b/keyboards/evil80/rules.mk new file mode 100644 index 000000000..1067b4344 --- /dev/null +++ b/keyboards/evil80/rules.mk | |||
@@ -0,0 +1,68 @@ | |||
1 | # MCU name | ||
2 | #MCU = at90usb1287 | ||
3 | MCU = 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. | ||
16 | F_CPU = 16000000 | ||
17 | |||
18 | # | ||
19 | # LUFA specific | ||
20 | # | ||
21 | # Target architecture (see library "Board Types" documentation). | ||
22 | ARCH = AVR8 | ||
23 | |||
24 | # Input clock frequency. | ||
25 | # This will define a symbol, F_USB, in all source code files equal to the | ||
26 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
27 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
28 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
29 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
30 | # at the end, this will be done automatically to create a 32-bit value in your | ||
31 | # source code. | ||
32 | # | ||
33 | # If no clock division is performed on the input clock inside the AVR (via the | ||
34 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
35 | F_USB = $(F_CPU) | ||
36 | |||
37 | # Interrupt driven control endpoint task(+60) | ||
38 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
39 | |||
40 | |||
41 | # Boot Section Size in *bytes* | ||
42 | # Teensy halfKay 512 | ||
43 | # Teensy++ halfKay 1024 | ||
44 | # Atmel DFU loader 4096 | ||
45 | # LUFA bootloader 4096 | ||
46 | # USBaspLoader 2048 | ||
47 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
48 | |||
49 | # Build Options | ||
50 | # change to "no" to disable the options, or define them in the Makefile in | ||
51 | # the appropriate keymap folder that will get included automatically | ||
52 | # | ||
53 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
54 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
55 | EXTRAKEY_ENABLE = no # Audio control and System control(+450) | ||
56 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
57 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
58 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
59 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
60 | MIDI_ENABLE = no # MIDI controls | ||
61 | AUDIO_ENABLE = no # Audio output on port C6 | ||
62 | UNICODE_ENABLE = no # Unicode | ||
63 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
64 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
65 | API_SYSEX_ENABLE = no | ||
66 | |||
67 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
68 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||