aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarhalloweenvt <marhalloweenvt@gmail.com>2020-04-24 23:05:57 +0700
committerGitHub <noreply@github.com>2020-04-24 17:05:57 +0100
commit4baf49191f70e184d6100a9e9d1b68253463f47d (patch)
treefd4710041ec3f7c062d366ab7e3a71171a4bca64
parent427da3c19c8d59de44fcfc261ca2f865fab9f5be (diff)
downloadqmk_firmware-4baf49191f70e184d6100a9e9d1b68253463f47d.tar.gz
qmk_firmware-4baf49191f70e184d6100a9e9d1b68253463f47d.zip
[Keyboard] Add p1800fl (#8879)
* My commit message * Adjust p1800fl
-rw-r--r--keyboards/handwired/p1800fl/config.h72
-rw-r--r--keyboards/handwired/p1800fl/info.json99
-rw-r--r--keyboards/handwired/p1800fl/keymaps/default/keymap.c41
-rw-r--r--keyboards/handwired/p1800fl/keymaps/default/readme.md1
-rw-r--r--keyboards/handwired/p1800fl/p1800fl.c28
-rw-r--r--keyboards/handwired/p1800fl/p1800fl.h42
-rw-r--r--keyboards/handwired/p1800fl/readme.md15
-rw-r--r--keyboards/handwired/p1800fl/rules.mk32
8 files changed, 330 insertions, 0 deletions
diff --git a/keyboards/handwired/p1800fl/config.h b/keyboards/handwired/p1800fl/config.h
new file mode 100644
index 000000000..c2022a6b2
--- /dev/null
+++ b/keyboards/handwired/p1800fl/config.h
@@ -0,0 +1,72 @@
1/*
2Copyright 2020 marhalloweenvt
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 0x3EAE
25#define DEVICE_VER 0x0001
26#define MANUFACTURER marhalloweenvt
27#define PRODUCT p1800fl
28#define DESCRIPTION A compact 1800 layout keyboard
29
30/* key matrix size */
31#define MATRIX_ROWS 6
32#define MATRIX_COLS 15
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 { B6, B5, B4, D7, D6, D4 }
45#define MATRIX_COL_PINS { C7, F7, F6, F5, F4, F1, F0, E6, B0, B1, B2, B3, D0, D1, D2}
46#define UNUSED_PINS
47
48/* COL2ROW, ROW2COL*/
49#define DIODE_DIRECTION COL2ROW
50
51#define BACKLIGHT_PIN B7
52#define BACKLIGHT_BREATHING
53#define BACKLIGHT_LEVELS 5
54
55/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
56#define DEBOUNCE 5
57
58/* define if matrix has ghost (lacks anti-ghosting diodes) */
59//#define MATRIX_HAS_GHOST
60
61/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
62#define LOCKING_SUPPORT_ENABLE
63/* Locking resynchronize hack */
64#define LOCKING_RESYNC_ENABLE
65
66/* disable these deprecated features by default */
67#define NO_ACTION_MACRO
68#define NO_ACTION_FUNCTION
69
70/* QMK DFU key configuration */
71#define QMK_ESC_OUTPUT C7 // usually COL
72#define QMK_ESC_INPUT B6 // usually ROW \ No newline at end of file
diff --git a/keyboards/handwired/p1800fl/info.json b/keyboards/handwired/p1800fl/info.json
new file mode 100644
index 000000000..1de6c2cdb
--- /dev/null
+++ b/keyboards/handwired/p1800fl/info.json
@@ -0,0 +1,99 @@
1{
2 "keyboard_name": "p1800fl",
3 "url": "",
4 "maintainer": "marhalloweenvt",
5 "width": 19.5,
6 "height": 5.25,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"Esc", "x":0, "y":0
11 {"label":"!", "x":1, "y":0
12 {"label":"@", "x":2, "y":0
13 {"label":"#", "x":3, "y":0
14 {"label":"$", "x":4, "y":0
15 {"label":"%", "x":5, "y":0
16 {"label":"^", "x":6, "y":0
17 {"label":"&", "x":7, "y":0
18 {"label":"*", "x":8, "y":0
19 {"label":"(", "x":9, "y":0
20 {"label":")", "x":10, "y":0
21 {"label":"_", "x":11, "y":0
22 {"label":"+", "x":12, "y":0
23 {"label":"Backspace", "x":13, "y":0
24 {"label":"Backspace", "x":14, "y":0
25 {"label":"Num Lock", "x":15.5, "y":0
26 {"label":"/", "x":16.5, "y":0
27 {"label":"*", "x":17.5, "y":0
28 {"label":"-", "x":18.5, "y":0
29 {"label":"Tab", "x":0, "y":1, "w":1.5
30 {"label":"Q", "x":1.5, "y":1
31 {"label":"W", "x":2.5, "y":1
32 {"label":"E", "x":3.5, "y":1
33 {"label":"R", "x":4.5, "y":1
34 {"label":"T", "x":5.5, "y":1
35 {"label":"Y", "x":6.5, "y":1
36 {"label":"U", "x":7.5, "y":1
37 {"label":"I", "x":8.5, "y":1
38 {"label":"O", "x":9.5, "y":1
39 {"label":"P", "x":10.5, "y":1
40 {"label":"{", "x":11.5, "y":1
41 {"label":"}", "x":12.5, "y":1
42 {"label":"|", "x":13.5, "y":1, "w":1.5
43 {"label":"7", "x":15.5, "y":1
44 {"label":"8", "x":16.5, "y":1
45 {"label":"9", "x":17.5, "y":1
46 {"label":"+", "x":18.5, "y":1
47 {"label":"Caps Lock", "x":0, "y":2, "w":1.75
48 {"label":"A", "x":1.75, "y":2
49 {"label":"S", "x":2.75, "y":2
50 {"label":"D", "x":3.75, "y":2
51 {"label":"F", "x":4.75, "y":2
52 {"label":"G", "x":5.75, "y":2
53 {"label":"H", "x":6.75, "y":2
54 {"label":"J", "x":7.75, "y":2
55 {"label":"K", "x":8.75, "y":2
56 {"label":"L", "x":9.75, "y":2
57 {"label":":", "x":10.75, "y":2
58 {"label":"\"", "x":11.75, "y":2
59 {"label":"Enter", "x":12.75, "y":2
60 {"label":"Enter", "x":13.75, "y":2, "w":1.25
61 {"label":"4", "x":15.5, "y":2
62 {"label":"5", "x":16.5, "y":2
63 {"label":"6", "x":17.5, "y":2
64 {"label":"+", "x":18.5, "y":2
65 {"label":"Shift", "x":0, "y":3, "w":1.25
66 {"label":"Shift", "x":1.25, "y":3
67 {"label":"Z", "x":2.25, "y":3
68 {"label":"X", "x":3.25, "y":3
69 {"label":"C", "x":4.25, "y":3
70 {"label":"V", "x":5.25, "y":3
71 {"label":"B", "x":6.25, "y":3
72 {"label":"N", "x":7.25, "y":3
73 {"label":"M", "x":8.25, "y":3
74 {"label":"<", "x":9.25, "y":3
75 {"label":">", "x":10.25, "y":3
76 {"label":"?", "x":11.25, "y":3
77 {"label":"Shift", "x":12.25, "y":3, "w":1.75
78 {"label":"1", "x":15.5, "y":3
79 {"label":"2", "x":16.5, "y":3
80 {"label":"3", "x":17.5, "y":3
81 {"label":"Enter", "x":18.5, "y":3
82 {"label":"Up", "x":14.25, "y":3.25
83 {"label":"Ctrl", "x":0, "y":4, "w":1.25
84 {"label":"Win", "x":1.25, "y":4, "w":1.25
85 {"label":"Alt", "x":2.5, "y":4, "w":1.25
86 {"label":"6.25x", "x":3.75, "y":4, "w":6.25
87 {"label":"Ctrl", "x":10, "y":4
88 {"label":"Win", "x":11, "y":4
89 {"label":"Alt", "x":12, "y":4
90 {"label":"0", "x":16.5, "y":4
91 {"label":".", "x":17.5, "y":4
92 {"label":"Enter", "x":18.5, "y":4
93 {"label":"Left", "x":13.25, "y":4.25
94 {"label":"Down", "x":14.25, "y":4.25
95 {"label":"Right", "x":15.25, "y":4.25}
96 ]
97 }
98 }
99} \ No newline at end of file
diff --git a/keyboards/handwired/p1800fl/keymaps/default/keymap.c b/keyboards/handwired/p1800fl/keymaps/default/keymap.c
new file mode 100644
index 000000000..03b6a1efd
--- /dev/null
+++ b/keyboards/handwired/p1800fl/keymaps/default/keymap.c
@@ -0,0 +1,41 @@
1/* Copyright 2020 marhalloweenvt
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
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26 /* Base */
27 [_BASE] = LAYOUT(
28 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_BSPC, KC_BSPC, KC_NLCK, KC_PSLS, KC_PAST, KC_PEQL,
29 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_P7, KC_P8, KC_P9, KC_PMNS,
30 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_ENT, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
31 KC_LSFT, 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_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
32 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT
33 ),
34 [_FN] = LAYOUT(
35 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_DEL, KC_DEL, BL_TOGG, BL_INC, KC_PAST, RESET,
36 _______, KC_HOME, KC_UP, KC_END, KC_PGUP, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS, BL_BRTG, BL_DEC, _______, EEP_RST,
37 _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, EEP_RST,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, KC_VOLU, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD, _______, _______, _______, _______
40 )
41};
diff --git a/keyboards/handwired/p1800fl/keymaps/default/readme.md b/keyboards/handwired/p1800fl/keymaps/default/readme.md
new file mode 100644
index 000000000..268d39922
--- /dev/null
+++ b/keyboards/handwired/p1800fl/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for p1800fl
diff --git a/keyboards/handwired/p1800fl/p1800fl.c b/keyboards/handwired/p1800fl/p1800fl.c
new file mode 100644
index 000000000..e0fc16a5e
--- /dev/null
+++ b/keyboards/handwired/p1800fl/p1800fl.c
@@ -0,0 +1,28 @@
1/* Copyright 2020 marhalloweenvt
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 "p1800fl.h"
18
19bool led_update_kb(led_t led_state) {
20 bool res = led_update_user(led_state);
21 if(res) {
22 writePin(D3, led_state.num_lock);
23 writePin(D5, led_state.caps_lock);
24 writePin(C6, led_state.scroll_lock);
25 }
26 return res;
27}
28
diff --git a/keyboards/handwired/p1800fl/p1800fl.h b/keyboards/handwired/p1800fl/p1800fl.h
new file mode 100644
index 000000000..7b8f3dcff
--- /dev/null
+++ b/keyboards/handwired/p1800fl/p1800fl.h
@@ -0,0 +1,42 @@
1/* Copyright 2020 marhalloweenvt
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/* This is a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29#define LAYOUT( \
30 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, k50, k51, k52, k53, \
31 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k54, k55, k56, k57, \
32 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k58, k59, k5a, k5b, \
33 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k5c, k5d, k5e, k4e, \
34 k40, k41, k42, k43, k45, k46, k47, k48, k49, k4a, k4b, k4c, k4d \
35) { \
36 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e }, \
37 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, KC_NO }, \
38 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, KC_NO }, \
39 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, KC_NO }, \
40 { k40, k41, k42, k43, KC_NO, k45, k46, k47, k48, k49, k4a, k4b, k4c, k4d, k4e }, \
41 { k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k5a, k5b, k5c, k5d, k5e }, \
42}
diff --git a/keyboards/handwired/p1800fl/readme.md b/keyboards/handwired/p1800fl/readme.md
new file mode 100644
index 000000000..545bd691a
--- /dev/null
+++ b/keyboards/handwired/p1800fl/readme.md
@@ -0,0 +1,15 @@
1# p1800fl
2
3![p1800fl](https://i.imgur.com/GQd28rN.jpg)
4
5A 1800 Frow-less keyboard project from our local makers.
6
7* Keyboard Maintainer: [marhalloweenvt](https://github.com/marhalloweenvt)
8* Hardware Supported: p1800fl
9* Hardware Availability: p1800fl
10
11Make example for this keyboard (after setting up your build environment):
12
13 make handwired/p1800fl:default
14
15See 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/p1800fl/rules.mk b/keyboards/handwired/p1800fl/rules.mk
new file mode 100644
index 000000000..b8601f0f1
--- /dev/null
+++ b/keyboards/handwired/p1800fl/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 = qmk-dfu
13
14# Build Options
15# change yes to no to disable
16#
17BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
18MOUSEKEY_ENABLE = yes # Mouse keys
19EXTRAKEY_ENABLE = yes # Audio control and System control
20CONSOLE_ENABLE = yes # Console for debug
21COMMAND_ENABLE = yes # 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 = yes # USB Nkey Rollover
26BACKLIGHT_ENABLE = yes # 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