aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/handwired/novem/config.h60
-rw-r--r--keyboards/handwired/novem/info.json18
-rw-r--r--keyboards/handwired/novem/keymaps/default/keymap.c77
-rw-r--r--keyboards/handwired/novem/keymaps/default/readme.md1
-rw-r--r--keyboards/handwired/novem/novem.c18
-rw-r--r--keyboards/handwired/novem/novem.h31
-rw-r--r--keyboards/handwired/novem/readme.md16
-rw-r--r--keyboards/handwired/novem/rules.mk32
8 files changed, 253 insertions, 0 deletions
diff --git a/keyboards/handwired/novem/config.h b/keyboards/handwired/novem/config.h
new file mode 100644
index 000000000..a8c012a45
--- /dev/null
+++ b/keyboards/handwired/novem/config.h
@@ -0,0 +1,60 @@
1/*
2Copyright 2020 Jose I. Martinez
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
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xFEED
24#define PRODUCT_ID 0x0000
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Jose I. Martinez
27#define PRODUCT novem
28#define DESCRIPTION A custom keyboard
29
30/* key matrix size */
31#define MATRIX_ROWS 3
32#define MATRIX_COLS 3
33
34/*
35 * Keyboard Matrix Assignments
36 *
37 * Change this to how you wired your keyboard
38 * COLS: AVR pins used for columns, left to right
39 * ROWS: AVR pins used for rows, top to bottom
40 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
41 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42 *
43 */
44#define MATRIX_ROW_PINS { E6, B4, B5 }
45#define MATRIX_COL_PINS { B3, B2, B6 }
46#define UNUSED_PINS
47
48/* COL2ROW, ROW2COL*/
49#define DIODE_DIRECTION COL2ROW
50
51/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
52#define DEBOUNCE 5
53
54/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
55#define LOCKING_SUPPORT_ENABLE
56/* Locking resynchronize hack */
57#define LOCKING_RESYNC_ENABLE
58
59
60
diff --git a/keyboards/handwired/novem/info.json b/keyboards/handwired/novem/info.json
new file mode 100644
index 000000000..df0b69320
--- /dev/null
+++ b/keyboards/handwired/novem/info.json
@@ -0,0 +1,18 @@
1{
2 "keyboard_name": "novem",
3 "url": "",
4 "maintainer": "Jose I. Martinez",
5 "width": 3,
6 "height": 2,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"k00", "x":0, "y":0},
11 {"label":"k01", "x":1, "y":0},
12 {"label":"k02", "x":2, "y":0},
13 {"label":"k10", "x":0, "y":1, "w":1.5},
14 {"label":"k12", "x":1.5, "y":1, "w":1.5}
15 ]
16 }
17 }
18}
diff --git a/keyboards/handwired/novem/keymaps/default/keymap.c b/keyboards/handwired/novem/keymaps/default/keymap.c
new file mode 100644
index 000000000..ca6f31888
--- /dev/null
+++ b/keyboards/handwired/novem/keymaps/default/keymap.c
@@ -0,0 +1,77 @@
1/* Copyright 2020 Jose I. Martinez
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _BASE,
21 _FN
22};
23
24// Defines the keycodes used by our macros in process_record_user
25enum custom_keycodes {
26 GITSTTS = SAFE_RANGE,
27 GITPULL,
28 GITPUSH,
29 GITCOM
30};
31
32const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
33 /* Base */
34 [_BASE] = LAYOUT(
35 KC_ESCAPE, KC_HOME, KC_DEL,
36 MO(_FN) , KC_UP , KC_ENTER,
37 KC_LEFT , KC_DOWN, KC_RIGHT
38 ),
39 [_FN] = LAYOUT(
40 KC_TRNS, GITCOM, GITPUSH,
41 KC_TRNS, GITSTTS, GITPULL,
42 KC_TRNS, KC_TRNS, KC_TRNS
43 )
44};
45
46bool process_record_user(uint16_t keycode, keyrecord_t *record) {
47 switch (keycode) {
48 case GITSTTS:
49 if (record->event.pressed) {
50 // when keycode GITSTTS is pressed
51 SEND_STRING("git status");
52 }
53 break;
54 case GITPULL:
55 if (record->event.pressed) {
56 // when keycode GITPULL is pressed
57 SEND_STRING("git pull");
58 }
59 break;
60 case GITPUSH:
61 if (record->event.pressed) {
62 // when keycode GITPUSH is pressed
63 SEND_STRING("git push");
64 }
65 break;
66 case GITCOM:
67 if (record->event.pressed) {
68 // when keycode GITCOM is pressed
69 SEND_STRING("git commit -m ");
70 }
71 break;
72 default:
73 return true;
74 }
75 return true;
76}
77
diff --git a/keyboards/handwired/novem/keymaps/default/readme.md b/keyboards/handwired/novem/keymaps/default/readme.md
new file mode 100644
index 000000000..0f833a09d
--- /dev/null
+++ b/keyboards/handwired/novem/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for novem
diff --git a/keyboards/handwired/novem/novem.c b/keyboards/handwired/novem/novem.c
new file mode 100644
index 000000000..967ec828f
--- /dev/null
+++ b/keyboards/handwired/novem/novem.c
@@ -0,0 +1,18 @@
1/* Copyright 2020 Jose I. Martinez
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include "novem.h"
18
diff --git a/keyboards/handwired/novem/novem.h b/keyboards/handwired/novem/novem.h
new file mode 100644
index 000000000..b1040094e
--- /dev/null
+++ b/keyboards/handwired/novem/novem.h
@@ -0,0 +1,31 @@
1/* Copyright 2020 Jose I. Martinez
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include "quantum.h"
20
21
22#define LAYOUT( \
23 k00, k01, k02, \
24 k03, k04, k05, \
25 k06, k07, k08 \
26) \
27{ \
28 { k00, k01, k02 }, \
29 { k03, k04, k05 }, \
30 { k06, k07, k08 }, \
31}
diff --git a/keyboards/handwired/novem/readme.md b/keyboards/handwired/novem/readme.md
new file mode 100644
index 000000000..c259c2cb8
--- /dev/null
+++ b/keyboards/handwired/novem/readme.md
@@ -0,0 +1,16 @@
1# novem
2
3![novem](https://i.imgur.com/nPjBE9b.jpg)
4
5A short description of the keyboard/project
6
7* Keyboard Maintainer: [Jose I. Martinez](https://github.com/mechanicalguy21)
8* Hardware Supported: This is a handwired keyboard created over a 3d printed case.
9STL will be shared soon.
10* Hardware Availability: STL files will be shared soon.
11
12Make example for this keyboard (after setting up your build environment):
13
14 make handwired/novem:default
15
16See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/handwired/novem/rules.mk b/keyboards/handwired/novem/rules.mk
new file mode 100644
index 000000000..3891651f3
--- /dev/null
+++ b/keyboards/handwired/novem/rules.mk
@@ -0,0 +1,32 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5# Teensy halfkay
6# Pro Micro caterina
7# Atmel DFU atmel-dfu
8# LUFA DFU lufa-dfu
9# QMK DFU qmk-dfu
10# ATmega32A bootloadHID
11# ATmega328P USBasp
12BOOTLOADER = caterina
13
14# Build Options
15# change yes to no to disable
16#
17BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
18MOUSEKEY_ENABLE = no # Mouse keys
19EXTRAKEY_ENABLE = no # Audio control and System control
20CONSOLE_ENABLE = no # Console for debug
21COMMAND_ENABLE = no # Commands for debug and configuration
22# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
24# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
25NKRO_ENABLE = no # USB Nkey Rollover
26BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
27RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
28MIDI_ENABLE = no # MIDI support
29BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
30AUDIO_ENABLE = no # Audio output on port C6
31FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
32HD44780_ENABLE = no # Enable support for HD44780 based LCDs