diff --git a/keyboards/flx/lodestone/config.h b/keyboards/flx/lodestone/config.h new file mode 100644 index 000000000..b2a1022a4 --- /dev/null +++ b/keyboards/flx/lodestone/config.h @@ -0,0 +1,70 @@ +/* Copyright 2020 Shaun Mitchell (Flex) + * + * 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 . + */ + +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x4658 //FX +#define PRODUCT_ID 0x4C53 //LS +#define DEVICE_VER 0x0001 +#define MANUFACTURER FLX +#define PRODUCT Lodestone +#define DESCRIPTION FLX Lodestone + +/* key matrix size */ +#define MATRIX_ROWS 5 +#define MATRIX_COLS 16 + +/* + * Keyboard Matrix Assignments + * + * Change this to how you wired your keyboard + * COLS: AVR pins used for columns, left to right + * ROWS: AVR pins used for rows, top to bottom + * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) + * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) + * +*/ +#define MATRIX_ROW_PINS { B3, B7, F0, F1, F4 } +#define MATRIX_COL_PINS { B2, F5, F6, D0, D1, D2, D3, D5, D4, D6, D7, B4, B5, B6, C6, C7 } +#define UNUSED_PINS + +/* COL2ROW, ROW2COL*/ +#define DIODE_DIRECTION COL2ROW + +// #define BACKLIGHT_PIN B7 +// #define BACKLIGHT_BREATHING +// #define BACKLIGHT_LEVELS 3 + +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ +#define DEBOUNCE 5 + +/* define if matrix has ghost (lacks anti-ghosting diodes) */ +//#define MATRIX_HAS_GHOST + +/* number of backlight levels */ + +/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ +#define LOCKING_SUPPORT_ENABLE +/* Locking resynchronize hack */ +#define LOCKING_RESYNC_ENABLE + +/* If defined, GRAVE_ESC will always act as ESC when CTRL is held. + * This is userful for the Windows task manager shortcut (ctrl+shift+esc). + */ +// #define GRAVE_ESC_CTRL_OVERRIDE diff --git a/keyboards/flx/lodestone/info.json b/keyboards/flx/lodestone/info.json new file mode 100644 index 000000000..52f5580b1 --- /dev/null +++ b/keyboards/flx/lodestone/info.json @@ -0,0 +1,84 @@ +{ + "keyboard_name": "lodestone", + "url": "https://prototypist.net/", + "maintainer": "Flexerm", + "width": 16, + "height": 5, + "layouts": { + "LAYOUT_all": { + "layout": [ + {"label":"K00 (B3,B2)", "x":0, "y":0}, + {"label":"K01 (B3,F5)", "x":1, "y":0}, + {"label":"K02 (B3,F6)", "x":2, "y":0}, + {"label":"K03 (B3,D0)", "x":3, "y":0}, + {"label":"K04 (B3,D1)", "x":4, "y":0}, + {"label":"K05 (B3,D2)", "x":5, "y":0}, + {"label":"K06 (B3,D3)", "x":6, "y":0}, + {"label":"K07 (B3,D5)", "x":7, "y":0}, + {"label":"K08 (B3,D4)", "x":8, "y":0}, + {"label":"K09 (B3,D6)", "x":9, "y":0}, + {"label":"K0A (B3,D7)", "x":10, "y":0}, + {"label":"K0B (B3,B4)", "x":11, "y":0}, + {"label":"K0C (B3,B5)", "x":12, "y":0}, + {"label":"K0D (B3,B6)", "x":13, "y":0}, + {"label":"K0E (B3,C6)", "x":14, "y":0}, + {"label":"K0F (B3,C7)", "x":15, "y":0}, + {"label":"K10 (B7,B2)", "x":0, "y":1, "w":1.5}, + {"label":"K11 (B7,F5)", "x":1.5, "y":1}, + {"label":"K12 (B7,F6)", "x":2.5, "y":1}, + {"label":"K13 (B7,D0)", "x":3.5, "y":1}, + {"label":"K14 (B7,D1)", "x":4.5, "y":1}, + {"label":"K15 (B7,D2)", "x":5.5, "y":1}, + {"label":"K16 (B7,D3)", "x":6.5, "y":1}, + {"label":"K17 (B7,D5)", "x":7.5, "y":1}, + {"label":"K18 (B7,D4)", "x":8.5, "y":1}, + {"label":"K19 (B7,D6)", "x":9.5, "y":1}, + {"label":"K1A (B7,D7)", "x":10.5, "y":1}, + {"label":"K1B (B7,B4)", "x":11.5, "y":1}, + {"label":"K1C (B7,B5)", "x":12.5, "y":1}, + {"label":"K1D (B7,B6)", "x":13.5, "y":1, "w":1.5}, + {"label":"K1F (B7,C7)", "x":15, "y":1}, + {"label":"K20 (F0,B2)", "x":0, "y":2, "w":1.75}, + {"label":"K21 (F0,F5)", "x":1.75, "y":2}, + {"label":"K22 (F0,F6)", "x":2.75, "y":2}, + {"label":"K23 (F0,D0)", "x":3.75, "y":2}, + {"label":"K24 (F0,D1)", "x":4.75, "y":2}, + {"label":"K25 (F0,D2)", "x":5.75, "y":2}, + {"label":"K26 (F0,D3)", "x":6.75, "y":2}, + {"label":"K27 (F0,D5)", "x":7.75, "y":2}, + {"label":"K28 (F0,D4)", "x":8.75, "y":2}, + {"label":"K29 (F0,D6)", "x":9.75, "y":2}, + {"label":"K2A (F0,D7)", "x":10.75, "y":2}, + {"label":"K2B (F0,B4)", "x":11.75, "y":2}, + {"label":"K2C (F0,B5)", "x":12.75, "y":2}, + {"label":"K2D (F0,B6)", "x":13.75, "y":2, "w":1.25}, + {"label":"K2F (F0,C7)", "x":15, "y":2}, + {"label":"K30 (F1,B2)", "x":0, "y":3, "w":1.25}, + {"label":"K31 (F1,F5)", "x":1.25, "y":3}, + {"label":"K32 (F1,F6)", "x":2.25, "y":3}, + {"label":"K33 (F1,D0)", "x":3.25, "y":3}, + {"label":"K34 (F1,D1)", "x":4.25, "y":3}, + {"label":"K35 (F1,D2)", "x":5.25, "y":3}, + {"label":"K36 (F1,D3)", "x":6.25, "y":3}, + {"label":"K37 (F1,D5)", "x":7.25, "y":3}, + {"label":"K38 (F1,D4)", "x":8.25, "y":3}, + {"label":"K39 (F1,D6)", "x":9.25, "y":3}, + {"label":"K3A (F1,D7)", "x":10.25, "y":3}, + {"label":"K3B (F1,B4)", "x":11.25, "y":3}, + {"label":"K3C (F1,B5)", "x":12.25, "y":3, "w":1.75}, + {"label":"K3E (F1,C6)", "x":14, "y":3}, + {"label":"K3F (F1,C7)", "x":15, "y":3}, + {"label":"K40 (F4,B2)", "x":0, "y":4, "w":1.225}, + {"label":"K41 (F4,F5)", "x":1.25, "y":4, "w":1.25}, + {"label":"K42 (F4,F6)", "x":2.5, "y":4, "w":1.25}, + {"label":"K46 (F4,D3)", "x":3.75, "y":4, "w":6.25}, + {"label":"K4A (F4,D7)", "x":10, "y":4, "w":1.25}, + {"label":"K4B (F4,B4)", "x":11.25, "y":4, "w":1.25}, + {"label":"K4D (F4,B6)", "x":13, "y":4}, + {"label":"K4E (F4,C6)", "x":14, "y":4}, + {"label":"K4F (F4,C7)", "x":15, "y":4} + ] + } + } + } + diff --git a/keyboards/flx/lodestone/keymaps/default/keymap.c b/keyboards/flx/lodestone/keymaps/default/keymap.c new file mode 100644 index 000000000..7ddaceaa7 --- /dev/null +++ b/keyboards/flx/lodestone/keymaps/default/keymap.c @@ -0,0 +1,20 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + // Default layer + [0] = LAYOUT_all( + 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, KC_BSPC, KC_BSPC, KC_HOME, + 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_PGUP, + 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, KC_PGDN, + KC_LSFT, KC_BSLS, 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_END, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT), + + // Fn1 Layer + [1] = LAYOUT_all( + 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, KC_TRNS, + KC_CAPS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_INS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, 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/flx/lodestone/keymaps/default/readme.md b/keyboards/flx/lodestone/keymaps/default/readme.md new file mode 100644 index 000000000..55aeb57ea --- /dev/null +++ b/keyboards/flx/lodestone/keymaps/default/readme.md @@ -0,0 +1 @@ +# The default keymap for Lodestone diff --git a/keyboards/flx/lodestone/keymaps/via/keymap.c b/keyboards/flx/lodestone/keymaps/via/keymap.c new file mode 100644 index 000000000..669d7fc44 --- /dev/null +++ b/keyboards/flx/lodestone/keymaps/via/keymap.c @@ -0,0 +1,37 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + // Default layer + [0] = LAYOUT_all( + 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, KC_BSPC, KC_BSPC, KC_HOME, + 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_PGUP, + 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, KC_PGDN, + KC_LSFT, KC_BSLS, 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_END, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT), + + // Fn1 Layer + [1] = LAYOUT_all( + 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, KC_TRNS, + KC_CAPS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_INS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), + + // Fn2 Layer + [2] = LAYOUT_all( + 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, 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, KC_TRNS, KC_TRNS), + + // Fn3 Layer + [3] = LAYOUT_all( + 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, 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, KC_TRNS, KC_TRNS), +}; + diff --git a/keyboards/flx/lodestone/keymaps/via/readme.md b/keyboards/flx/lodestone/keymaps/via/readme.md new file mode 100644 index 000000000..9ee2c477b --- /dev/null +++ b/keyboards/flx/lodestone/keymaps/via/readme.md @@ -0,0 +1 @@ +# The default VIA keymap for Lodestone \ No newline at end of file diff --git a/keyboards/flx/lodestone/keymaps/via/rules.mk b/keyboards/flx/lodestone/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/flx/lodestone/keymaps/via/rules.mk @@ -0,0 +1 @@ +VIA_ENABLE = yes diff --git a/keyboards/flx/lodestone/lodestone.c b/keyboards/flx/lodestone/lodestone.c new file mode 100644 index 000000000..bb0df70cc --- /dev/null +++ b/keyboards/flx/lodestone/lodestone.c @@ -0,0 +1,17 @@ +/* Copyright 2020 Shaun Mitchell (Flex) + * + * 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 . + */ + +#include "lodestone.h" diff --git a/keyboards/flx/lodestone/lodestone.h b/keyboards/flx/lodestone/lodestone.h new file mode 100644 index 000000000..4e2323556 --- /dev/null +++ b/keyboards/flx/lodestone/lodestone.h @@ -0,0 +1,37 @@ +/* Copyright 2020 Shaun Mitchell (Flex) + * + * 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 . + */ + +#pragma once + +#include "quantum.h" + +#define ___ KC_NO + +// standard 65% layout ANSI + ISO + +#define LAYOUT_all( \ + K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, \ + K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1F, \ + K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2F, \ + K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3E, K3F, \ + K40, K41, K42, K46, K4A, K4B, K4D, K4E, K4F \ +) { \ + { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F }, \ + { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, ___, K1F }, \ + { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, ___, K2F }, \ + { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, ___, K3E, K3F }, \ + { K40, K41, K42, ___, ___, ___, K46, ___, ___, ___, K4A, K4B, ___, K4D, K4E, K4F }, \ +} diff --git a/keyboards/flx/lodestone/readme.md b/keyboards/flx/lodestone/readme.md new file mode 100644 index 000000000..e52d8d0c6 --- /dev/null +++ b/keyboards/flx/lodestone/readme.md @@ -0,0 +1,13 @@ +# FLX & proto[Typist] Lodestone + +Lodestone is a keyboard PCB supporting 65% layout with one bottom row blocker, designed by Flex of FLX Keyboards. [More info at proto[Typist]](https://prototypist.net/) + +* Keyboard Maintainer: [Flexerm](https://github.com/Flexerm) +* Hardware Supported: FLX - Lodestone (LS65) PCB +* Hardware Availability: [proto[Typist]](https://prototypist.net/) + +Make example for this keyboard (after setting up your build environment): + + make flx/lodestone:default + +See 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/flx/lodestone/rules.mk b/keyboards/flx/lodestone/rules.mk new file mode 100644 index 000000000..b7eb5514b --- /dev/null +++ b/keyboards/flx/lodestone/rules.mk @@ -0,0 +1,33 @@ +# MCU name +MCU = atmega32u4 + +# Bootloader selection +# Teensy halfkay +# Pro Micro caterina +# Atmel DFU atmel-dfu +# LUFA DFU lufa-dfu +# QMK DFU qmk-dfu +# ATmega32A bootloadHID +# ATmega328P USBasp +BOOTLOADER = atmel-dfu + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend +# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +NKRO_ENABLE = yes # USB Nkey Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +MIDI_ENABLE = no # MIDI support +UNICODE_ENABLE = no # Unicode +BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID +AUDIO_ENABLE = no # Audio output on port C6 +FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches +HD44780_ENABLE = no # Enable support for HD44780 based LCDs +LTO_ENABLE = yes